@Text with parameters does not display percents (%) correctly

@Text(0.05; “%2”)

produces “4.999999999%” when clearly it should read “5%” or “5.00%”.

This error only occurs for some numbers. It is very strange. Not only is the answer wrong, but it seems to ignore the parameter restricting output to 2 decimal places.

Sidenote: 0.05 * 100 also produced this error! Notes bug? Is it just me/my system?

Subject: @Text with parameters does not display percents (%) correctly

0.05 does not have an exact binary equivalent. It’s like trying to do one-third as a decimal – you end up with a repeating number. That’s pretty much standard across platforms and languages. (Some specialised systems do use Binary Coded Decimal values rather than pure binaries, but that is not the norm for general-purpose computing.)

That explains the .05*100 thing, but you’re right about @Text – it should round and truncate the string according to the documentation.