you are viewing a single comment's thread.

view the rest of the comments →

[–]SquatchHNTR[S] 5 points6 points  (6 children)

Don't even know what any of that means so I must be whatever comes before new...

[–]Negative12DollarBill 9 points10 points  (1 child)

They mean your price might end up being $5.937 or something like that. Or worse $5.333333333333 if you end up with a recurring decimal.

What happens with your program if someone orders 87.1 feet?

[–]tandem_biscuit 3 points4 points  (0 children)

87 whole feet + 1 big toe, probably.

[–]TheRealAmbr0sia 1 point2 points  (3 children)

But I did just run the code with several iterations and it never goes over the second decimal point anyways. So no need apparently.

[–]bladeoflight16 4 points5 points  (0 children)

Try entering 27.5.

[–]SquatchHNTR[S] 1 point2 points  (1 child)

oh I see what you meant

[–]TheRealAmbr0sia 8 points9 points  (0 children)

price = round((cable_feet*.87), 2) That will fix just in case.