Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Infinity for `Numeric`Forum ↗

Infinity for `Numeric`

App Development2 posts147 viewsLast activity Apr 2022
LU
LucianoOP
Apr 2022

Does the Numeric type have a value for infinity (positive/negative) the same way that e.g. java has double.POSITIVE_INFINITY if I remember correctly? What are the semantics for this?

BE
bernhard
Apr 2022

There are no special values for infinities, NaN, or other non-numerics. The closest thing is maxBound which gives you the maximum value for a bounded numeric type.

← Back to Discussions