Negative Numbers and NumberFormat
Richard Gaskin
ambassador at fourthworld.com
Wed Apr 5 18:48:37 EDT 2017
Jacque wrote:
> HyperCard distinguished between "#" and "0" and produced different
> results. It sounds like LC doesn't?
Confirmed - running this script in v9dp6 and again all the way back in
v6.0:
on mouseUp
set the numberformat to "###.###"
put 2.5 + 2.5 into x
set the numberformat to "000.000"
put 2.5 + 2.5 into y
put x &cr& y
end mouseUp
...I get:
005.000
005.000
Where I would have expected:
5.0
005.000
Who wants to file the bug report?
--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web
____________________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list