FUNCTION::FP_TO_LONG(3stap)

πŸ’– FUNCTION::FP_TO_LONG πŸ’–

okay bestie, so this one lives in the SystemTap Tapset Reference, section 3stap, and it's literally the glow-up machine that takes your floating point and hands you back an int64. no cap. πŸ¦‹


✨ NAME ✨

function::fp_to_long β€” Convert fp to int64 πŸ’…


🌸 SYNOPSIS 🌸

fp_to_long:long(infp:long,roundingMode:long,exact:long)

πŸŽ€ ARGUMENTS πŸŽ€

  • infp β€” the 64 bit floating point stored in long. that's the lil guy we're converting, periodt. πŸ“
  • roundingMode β€” through 0-6, which are round to nearest even, minMag, min, max, near maxMag and round to odd. pick your fighter, she does all seven. 😭
  • exact β€” the boolean value, if exact is 1 than raising inexact exception, otherwise ignore the exception. so like, 1 = we're dramatic about it, 0 = we're chill. πŸ™ˆ

πŸ’œ DESCRIPTION πŸ’œ

Given a 64 bit floating point, which is stored in long, use the long value to initiate self-defined float64_t type, then apply the f64_to_i64 function to get the string representation. so it's giving "build the float64_t, run f64_to_i64, get the string rep" β€” a whole three-step main character arc and honestly? iconic. πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

tapset::floatingpoint(3stap)


and that's the tea, bestie ✨ this page came to you straight from the SystemTap Tapset Reference, Ver, dated September 2026 β€” take care of her, she ate πŸ’–πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from