ROUND(3G)

πŸ“¦
version 1.0~svn33624 Β· 4 versions
, in ubuntu jammy, ubuntu noble

🌸 ROUND(3G) 🌸

okay bestie, welcome to the ROUND(3G) manual page πŸ’– this is a [FIXME: manual] situation and we're gonna make it iconic anyway.


✨ NAME ✨

round β€” find the nearest integer less than or equal to the parameter πŸŽ€


πŸ¦‹ DECLARATION πŸ¦‹

here's the tea, the actual signatures, copied exactly, no notes:

genType round(genType x);

genDType round(genDType x);

🌈 PARAMETERS 🌈

  • x β€” Specify the value to evaluate. that's it, that's the whole vibe, she's the one being evaluated πŸ’…

πŸ‘‘ DESCRIPTION πŸ‘‘

so round returns a value equal to the nearest integer to x. simple, slay.

but β€” and this is the part that lowkey matters β€” the fraction 0.5 will round in a direction chosen by the implementation, presumably the direction that is fastest πŸ”₯. and that includes the possibility that round(x) returns the same value as roundEven()(x) for all values of x. so yeah, don't come for her about which way 0.5 goes, it's giving "implementation's choice" fr fr 😭


πŸ’€ VERSION SUPPORT πŸ’€

okay so here's who's invited to the party, by OpenGL Shading Language Version 🫢

round (genType) β€” main character energy, but not from the jump:

  • OpenGL Shading Language Version 1.10 β€” - (not supported πŸ™ˆ)
  • 1.20 β€” - (still not invited πŸ™ˆ)
  • 1.30 β€” βœ” (she's here! ✨)
  • 1.40 β€” βœ”
  • 1.50 β€” βœ”
  • 3.30 β€” βœ”
  • 4.00 β€” βœ”
  • 4.10 β€” βœ”
  • 4.20 β€” βœ”
  • 4.30 β€” βœ”
  • 4.40 β€” βœ”
  • 4.50 β€” βœ”

round (genDType) β€” the late arrival, fashionably late, no apologies:

  • OpenGL Shading Language Version 1.10 β€” - (nope πŸ’€)
  • 1.20 β€” - (nope πŸ’€)
  • 1.30 β€” - (still nope πŸ’€)
  • 1.40 β€” - (nope πŸ’€)
  • 1.50 β€” - (nope πŸ’€)
  • 3.30 β€” - (nope πŸ’€)
  • 4.00 β€” βœ” (okay she finally showed up πŸŽ€)
  • 4.10 β€” βœ”
  • 4.20 β€” βœ”
  • 4.30 β€” βœ”
  • 4.40 β€” βœ”
  • 4.50 β€” βœ”

πŸ“ SEE ALSO πŸ“

go read these next, bestie, they're the supporting cast:

  • floor()
  • roundEven()

Copyright Β© 2011-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.

Copyright Β© 2011-2014 Khronos Group


and that's the whole page, periodt πŸ’…βœ¨ this came from [FIXME: source], dated 01/03/2018, and yes she's still answering to ROUND(3G) πŸŽ€ mwah, go round some numbers bestie πŸ¦‹

πŸ“¦ where this page comes from