Rephrase docs for truncation of float/decimal to integer (#6543)

This commit is contained in:
Robin 2025-07-14 15:31:27 +02:00 committed by GitHub
parent 0c12828c9a
commit f51cb4b03e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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