Infinity: Difference between revisions

10 bytes removed ,  15 years ago
m
Moved to Discrete cat
m (Moved to Basic learning and Math cats)
m (Moved to Discrete cat)
Line 1:
{{task|Basic language learning}}[[Category:MathematicalDiscrete operationsmath]]Write a function which tests if infinity is supported for floating point numbers (this step should be omitted for languages where the language specification already demands the existence of infinity, e.g. by demanding [[IEEE]] numbers), and if so, returns positive infinity. Otherwise, return the largest possible number.
 
For languages with several floating point types, use the type of the literal constant 1.0 as floating point type.
Anonymous user