Crystal Forum
How do you convert float to Int?
Help & Support
jacob
November 8, 2019, 6:11pm
1
Sorry for this newbie question, I tried
round
and
as
, they don’t for that.
asterite
November 8, 2019, 6:27pm
2
to_i
4 Likes
Related topics
Topic
Replies
Views
Activity
Generic & to_i
Help & Support
7
516
December 21, 2019
How to convert a float into a desired precision, then convert it to bigdecimal? (correct way?)
Help & Support
2
277
August 11, 2022
From Int to BigInt
Help & Support
5
406
July 26, 2021
Do we need to use the same integer types in operations?
Help & Support
2
365
March 2, 2019
Getting an Int value from keyboard
Help & Support
2
257
December 13, 2023