HaxeFoundation / haxe.org-comments

Repository to collect comments of our haxe.org websites
2 stars 2 forks source link

[haxe.org/manual] Numeric types #66

Open utterances-bot opened 4 years ago

utterances-bot commented 4 years ago

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

dreamlover commented 4 years ago

You can convert Float to Int with the Standard Library function like this: var intDivision = Std.int(6.2/4.7);

betoecs commented 3 years ago

you can do in C++ auto myButton = new MySpecialButton();

baodingfengyun commented 2 years ago

多语言翻译的基础就是类型系统。

chikega commented 11 months ago

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