# Help me please. displaying calculation as £.00 swishmax

• carpetmonkey
• Born
• Joined: Jan 06, 2004
• Posts: 2
• Status: Offline

January 6th, 2004, 8:53 am

Hi, I am pretty new to all this. I'm making a price calculator, that all works fine, except i can't get the decimal places to appear in the right place. If the total is exactly in pounds it's fine, but if total is £5.75 it would show £5.75.00.
Code so far is
Code: [ Select ]
on (release,keyPress("<Enter>")) {
if (input.text <=1000) {
total.text= "£" + input.text * 1.30 add ".00";
each.text= " £1.30";
save.text = "1000";
}
if (input.text <=500) {
total.text= "£" +input.text * 1.45 add".00";
each.text= " £1.45";
save.text = "500";
}
1. on (release,keyPress("<Enter>")) {
2.   if (input.text <=1000) {
3.     total.text= "£" + input.text * 1.30 add ".00";
4.     each.text= " £1.30";
5.     save.text = "1000";
6.   }
7.   if (input.text <=500) {
8.     total.text= "£" +input.text * 1.45 add".00";
9.     each.text= " £1.45";
10.     save.text = "500";
11.   }

Any ideas?

Thank you
Code: [ Select ]
if (input.text <250) {
total.text= "£" +input.text * 1.60 add ".00";
each.text= " £1.60";
save.text = "250";
}
1.   if (input.text <250) {
2.     total.text= "£" +input.text * 1.60 add ".00";
3.     each.text= " £1.60";
4.     save.text = "250";
5.   }
• Anonymous
• Bot
• Joined: 25 Feb 2008
• Posts: ?
• Loc: Ozzuland
• Status: Online

January 6th, 2004, 8:53 am

## Post Information

• Total Posts in this topic: 1 post
• Users browsing this forum: No registered users and 21 guests
• You cannot post new topics in this forum
• You cannot reply to topics in this forum
• You cannot edit your posts in this forum
• You cannot delete your posts in this forum
• You cannot post attachments in this forum

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.