Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3695

Rounding error in format?

$
0
0

Isn’t 5 the number at which a rounding is supposed to go up?
Look at the code below;

var amount as double = 10.125
var amountString as string = format (amount, “####.00”)

This results in amountString being “10.12” instead of “10.13”

5 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 3695

Trending Articles