Is there a way to suppress scientific notation in Haxe?
For example, if I have:
var f:Float = 0.00007075;
var s:String = Std.string(f);
In targets such as html5, this outputs: 0.00007075
However, c++ targets output: 7.075e-05
Is there a way to control whether scientific notation is used for string format?
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.
class Test
{
@:native("__hxcpp_set_float_format") @:extern
static function setFloatFormat(format:String):Void { }
public static function main()
{
trace(0.00005);
trace(5e20);
setFloatFormat("%.12f");
trace(0.00005);
trace(5e20);
}
}
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Haxe" group.