Please consider Math.trunc(x:Float):Int and Math.ftrunc(x:Float):Float

32 views
Skip to first unread message

Carlos Madrazo

unread,
Jun 4, 2014, 9:39:13 AM6/4/14
to haxe...@googlegroups.com
Hi, I really would like these functions to be added to Haxe API.
This would be similar to (same as) Std.int(x) but they would perform natively for CPP targets.
It is similar to (same as) Math.floor(x) for positive numbers, and Math.ceil(x) for negative numbers.

But I am not really sure if it is supported on all C++ targets (c11) but implemented with floor and ceil would be OK anyway.

Thanks
Reply all
Reply to author
Forward
0 new messages