Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
19
Task/Infinity/PureBasic/infinity.basic
Normal file
19
Task/Infinity/PureBasic/infinity.basic
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
If OpenConsole()
|
||||
Define.d a, b
|
||||
b = 0
|
||||
|
||||
;positive infinity
|
||||
PrintN(StrD(Infinity())) ;returns the value for positive infinity from builtin function
|
||||
|
||||
a = 1.0
|
||||
PrintN(StrD(a / b)) ;calculation results in the value of positive infinity
|
||||
|
||||
;negative infinity
|
||||
PrintN(StrD(-Infinity())) ;returns the value for negative infinity from builtin function
|
||||
|
||||
a = -1.0
|
||||
PrintN(StrD(a / b)) ;calculation results in the value of negative infinity
|
||||
|
||||
Print(#crlf$ + #crlf$ + "Press ENTER to exit"): Input()
|
||||
CloseConsole()
|
||||
EndIf
|
||||
Loading…
Add table
Add a link
Reference in a new issue