github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/stdlibs/math/native.gno (about)

     1  package math
     2  
     3  // Float32bits returns the IEEE 754 binary representation of f, with the sign
     4  // bit of f and the result in the same bit position.
     5  // Float32bits(Float32frombits(x)) == x.
     6  func Float32bits(f float32) uint32 // injected
     7  
     8  // Float32frombits returns the floating-point number corresponding to the IEEE
     9  // 754 binary representation b, with the sign bit of b and the result in the
    10  // same bit position. Float32frombits(Float32bits(x)) == x.
    11  func Float32frombits(b uint32) float32 // injected
    12  
    13  // Float64bits returns the IEEE 754 binary representation of f, with the sign
    14  // bit of f and the result in the same bit position.
    15  // Float64bits(Float64frombits(x)) == x.
    16  func Float64bits(f float64) uint64 // injected
    17  
    18  // Float64frombits returns the floating-point number corresponding to the IEEE
    19  // 754 binary representation b, with the sign bit of b and the result in the
    20  // same bit position. Float64frombits(Float64bits(x)) == x.
    21  func Float64frombits(b uint64) float64 // injected