Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for FloatString (2.75 sec)

  1. lib/fips140/v1.0.0.zip

    panic("x out of range") } if d <= 0 || d >= 12 { panic("d out of range") } precise := big.NewRat((1<<d)*int64(x), q) // (2ᵈ / q) * x == (2ᵈ * x) / q // FloatString rounds halves away from 0, and our result should always be positive, // so it should work as we expect. (There's no direct way to round a Rat.) rounded, err := strconv.ParseInt(precise.FloatString(0), 10, 64) if err != nil { panic(err) } // If we rounded up, `rounded` may be equal to 2ᵈ, so we perform a final reduction. return uint16(rounded...
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Jan 29 15:10:35 UTC 2025
    - 635K bytes
    - Viewed (0)
  2. api/go1.txt

    pkg math/big, method (*Rat) Abs(*Rat) *Rat
    pkg math/big, method (*Rat) Add(*Rat, *Rat) *Rat
    pkg math/big, method (*Rat) Cmp(*Rat) int
    pkg math/big, method (*Rat) Denom() *Int
    pkg math/big, method (*Rat) FloatString(int) string
    pkg math/big, method (*Rat) GobDecode([]uint8) error
    pkg math/big, method (*Rat) GobEncode() ([]uint8, error)
    pkg math/big, method (*Rat) Inv(*Rat) *Rat
    pkg math/big, method (*Rat) IsInt() bool
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top