CONV_FLOAT_U32(9)

πŸ“¦
version 2.9.4 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– conv_float_u32 β€” HAL Component πŸ’–

okay bestie, sit down, hydrate, and get ready, because we're talking about the manual page for CONV_FLOAT_U32(9), a HAL component, and honestly? it's giving "tiny but mighty" ✨

🌸 NAME 🌸

conv_float_u32 β€” Convert a value from float to u32

no cap, that's literally the whole job. it takes your float and turns it into a u32. iconic behavior.


✨ SYNOPSIS ✨

loadrt conv_float_u32 [count=N|names=name1[,name2...]]

that's the way you load it, periodt. πŸ’…


🫢 FUNCTIONS 🫢

  • conv-float-u32.N β€” requires a floating-point thread, so like, don't even try to put it on a regular non-FP thread, it's not the vibe. what it does: Update out based on in. that's it. that's the function. main character energy fr fr.

πŸ’œ PINS πŸ’œ

  • conv-float-u32.N.in float in β€” your glow-up input πŸ¦‹ the float value you're feeding in.
  • conv-float-u32.N.out u32 out β€” the output, freshly converted into a u32. slay.
  • conv-float-u32.N.out-of-range bit out β€” TRUE when in is not in the range of u32. so it's like a lil alarm bell πŸŽ€ telling you your number went rogue.

🌈 PARAMETERS 🌈

  • conv-float-u32.N.clamp bit rw β€” If TRUE, then clamp to the range of u32. If FALSE, then allow the value to "wrap around". bestie, pick your fighter: clampy boi or chaotic wrapping. one of them is safe and one of them is a little feral, iykyk 😭

πŸ‘‘ AUTHOR πŸ‘‘

Jeff Epler


πŸ“œ LICENSE πŸ“œ

GPL


ok so real talk: if clamp is FALSE, the value is allowed to "wrap around" β€” that's the documented behavior, so don't come for me when your numbers do a little somersault. πŸ’€

and that's the whole page, bestie β€” you ate this one up πŸ“

this was from the LinuxCNC Documentation, dated 2026-03-17 β€” mwah, take care of her, she's a classic πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from