CEIL(3G)

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

okay bestie, sit down, we're doing math πŸ’– this is the CEIL(3G) page, straight out of the [FIXME: manual] manual, and honestly? it's giving "short and iconic." no notes. let's get into it.


🌸 NAME 🌸

ceil β€” find the nearest integer that is greater than or equal to the parameter

like, the ceiling. the roof. the vibes above you. 🏠✨


✨ DECLARATION ✨

here's the whole thing, verbatim, don't @ me:

genType ceil(genType x);

genDType ceil(genDType x);

two flavors: the regular girlies (genType) and the double-precision divas (genDType). πŸ’…


πŸŽ€ PARAMETERS πŸŽ€

  • x β€” specify the value to evaluate. that's it. that's the input. hand it over and let ceil cook. πŸ“

πŸ’… DESCRIPTION πŸ’…

okay so the whole plot of this function: ceil returns a value equal to the nearest integer that is greater than or equal to x.

that's the entire lore. it takes your little float and rounds it up to the next whole number, no matter how close it already was. x already a whole number? bestie it stays exactly the same, ceil is not gonna inflate your ego. πŸ”₯


πŸ‘‘ VERSION SUPPORT πŸ‘‘

the glow-up timeline, aka which OpenGL Shading Language versions said yes to which signature. the columns are the versions: 1.10, 1.20, 1.30, 1.40, 1.50, 3.30, 4.00, 4.10, 4.20, 4.30, 4.40, 4.50.

ceil (genType) β€” supported everywhere, day one, never missed a single era. βœ” in:

  • 1.10
  • 1.20
  • 1.30
  • 1.40
  • 1.50
  • 3.30
  • 4.00
  • 4.10
  • 4.20
  • 4.30
  • 4.40
  • 4.50

ceil (genDType) β€” late bloomer era 😭. absent for the early years, then absolutely ate from 4.00 onward.

  • 1.10 β€” -
  • 1.20 β€” -
  • 1.30 β€” -
  • 1.40 β€” -
  • 1.50 β€” -
  • 3.30 β€” -
  • 4.00 β€” βœ”
  • 4.10 β€” βœ”
  • 4.20 β€” βœ”
  • 4.30 β€” βœ”
  • 4.40 β€” βœ”
  • 4.50 β€” βœ”

so if you're on anything older than 4.00 and you're out here calling the double-precision version, that's a no from the compiler. 🫢


πŸ¦‹ SEE ALSO πŸ¦‹

the rest of the friend group, go say hi:

  • floor()
  • round()

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, no cap. 🧚 run it back whenever you need a ceiling.

signing off from [FIXME: source], dated 01/03/2018, page CEIL(3G) β€” stay rounded up, bestie. πŸŒˆβ­πŸ’–

πŸ“¦ where this page comes from