Compare commits

...

2 Commits

Author SHA1 Message Date
Robin
dc49c869b8
Merge c86f9b3a2dec37c6e9984f81d4630bad343ee452 into eed34070513e6060f86f86b56ba7071507fe811b 2025-07-09 14:49:27 +02:00
mewmew
c86f9b3a2d Rephrase docs for truncation of float/decimal to integer
Use "corresponding integer" instead of "next integer", to avoid confusion
that 2.7 may be rounded to 3.
2025-07-02 13:27:42 +02:00

View File

@ -46,7 +46,7 @@ impl i64 {
/// or smaller than the minimum 64-bit signed integer. /// or smaller than the minimum 64-bit signed integer.
/// ///
/// - Booleans are converted to `0` or `1`. /// - Booleans are converted to `0` or `1`.
/// - Floats and decimals are truncated to the next 64-bit integer. /// - Floats and decimals are truncated to the corresponding 64-bit integer.
/// - Strings are parsed in base 10. /// - Strings are parsed in base 10.
/// ///
/// ```example /// ```example