[chuck-users] int/float conversion oddity (48.0000 = 47)

Graham Percival gpermus at gmail.com
Mon Oct 10 03:21:30 EDT 2005


std.mtof(std.ftom(48)) => float foo;
<<< foo >>>;
foo $ int => int bar;
<<< bar >>>;
std.mtof(std.ftom(48)) $ int => int baz;
<<< baz >>>;


On OSX 10.3.9, using chuck 1.2.0.1, this results in:
48.000000 :(float)
47 :(int)
47 :(int)


Cheers,
- Graham



More information about the chuck-users mailing list