Always show money with two decimal places

Stephen Paul Weber created

Change summary

sgx_jmp.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Detailed changes

sgx_jmp.rb 🔗

@@ -328,7 +328,7 @@ command :execute?, node: "buy-credit", sessionid: nil do |iq|
 		form.fields = [
 			{
 				type: "fixed",
-				value: "Current balance: $#{balance.to_s('F')}"
+				value: "Current balance: $#{'%.2f' % balance}"
 			},
 			({
 				var: "payment_method",
@@ -387,7 +387,7 @@ command :execute?, node: "buy-credit", sessionid: nil do |iq|
 		reply2.status = :completed
 		note = reply2.note
 		note[:type] = :info
-		note.content = "$#{amount.to_s('F')} added to your account balance."
+		note.content = "$#{'%.2f' % amount} added to your account balance."
 
 		command_reply_and_done(reply2)
 	}.catch { |e|