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
520
December 21, 2019
Check if a string is a number
Help & Support
1
69
June 4, 2025
How to convert a float into a desired precision, then convert it to bigdecimal? (correct way?)
Help & Support
2
280
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