Open utterances-bot opened 4 years ago
You can convert Float to Int with the Standard Library function like this:
var intDivision = Std.int(6.2/4.7);
you can do in C++
auto myButton = new MySpecialButton();
多语言翻译的基础就是类型系统。
You could also convert Float to Int - similar to Lua (pre-5.3):
var intDiv = Math.floor(10.0/3.0);
$type(intDiv) // verify type inference as 'int' type
Numeric types - Haxe - The Cross-platform Toolkit
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
https://haxe.org/manual/types-numeric-types.html