See the full article from Nonki here:
Small Basic: Parameter or Return Value Range for Math Function
This article describes the ranges of parameters or return values for Small Basic Math functions. This article is work in progress. So "N/A" means that the range is not investigated yet. Please edit this article here if you know any range information about Math functions in Small Basic.
Let's check out the article's TOC...
Table of Contents
Literal Numbers
This limitation is only for literal numbers but not for literal texts. Following code shows this fact.
n
=
1000000000000001
TextWindow
.
WriteLine
(
n
)
' 1000000000000000
n
=
"1000000000000001"
TextWindow
.
WriteLine
(
n
)
' 1000000000000001
Range
-1E15 = -1000000000000000 ≦ literal ≦ 1000000000000000 = 1E15
Sample Program
Math Functions
In Small Basic, Math object has 20 operations (functions).
Abs
Math.Abs(number)
ArcCos
Math.ArcCos(cosValue)
Range
-1 ≦ cosValue ≦ 1
0 ≦ Math.ArcCos(cosValue) ≦ Math.Pi
ArcSin
Math.ArcSin(sinValue)
Range
-1 ≦ sinValue ≦ 1
-Math.Pi / 2 ≦ Math.ArcSin(sinValue) ≦ Math.Pi / 2