Skip to content

Commit

Permalink
Merge pull request #636 from Jigglypuffed/main
Browse files Browse the repository at this point in the history
Added imprecision warning for (un)bits
  • Loading branch information
kaikalii authored Dec 20, 2024
2 parents 8316232 + 3d27df0 commit efa0bd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/primitive/defs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ primitive!(
/// See the [More Array Manipulation Tutorial](/tutorial/morearray) for more information on this use case.
(1, Fix, MonadicArray, ("fix", '¤')),
/// Encode an array as bits (LSB-first)
/// **Warning** Due to floating point imprecision, conversion (both [bits] and [un][bits]) performed on large numbers (over 53 bits long) may give incorrect results.
///
/// The result will always be 1 rank higher than the input.
/// ex: ⋯27
Expand Down

0 comments on commit efa0bd4

Please sign in to comment.