varjo icon indicating copy to clipboard operation
varjo copied to clipboard

Float literal details

Open cbaggers opened this issue 6 years ago • 0 comments


Floats can also be defined using exponential notation, using the e or E to separate the base from the exponent. The exponent is always base-10.

In GLSL 4.00 and above, double-precision floats are available. By default, all floating-point literals are of type float. To create a double-precision float, use the lf or LF suffixes. This will force it to the double type.```

cbaggers avatar Oct 16 '19 17:10 cbaggers