MCPcopy Create free account
hub / github.com/rsc/tmp / MustRoundUp

Function MustRoundUp

ftoa/abseil/charconv.cc:509–567  ·  view source on GitHub ↗

Checks if a floating point guess needs to be rounded up, using high precision math. `guess_mantissa` and `guess_exponent` represent a candidate guess for the number represented by `parsed_decimal`. The exact number represented by `parsed_decimal` must lie between the two numbers: A = `guess_mantissa * 2**guess_exponent` B = `(guess_mantissa + 1) * 2**guess_exponent` This function returns false

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 5

ReadFloatMantissaMethod · 0.80
MultiplyByMethod · 0.80
CompareFunction · 0.70
ShiftLeftMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…