fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 80: Truncate floating point number to integer
Idiom # 80: Truncate floating point number to integer
See
programming-idioms.org
:
Code
y := x.as_i64
What are effects?
Example
ex80 => x := -7.9 y := x.as_i64 say y
What are effects?
last changed: 2024-07-01
next: Idiom # 81: Round floating point number to integer