Authored by Ed Price
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...
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
-1E15 = -1000000000000000 ≦ literal ≦ 1000000000000000 = 1E15
In Small Basic, Math object has 20 operations (functions).
-1 ≦ cosValue ≦ 1
0 ≦ Math.ArcCos(cosValue) ≦ Math.Pi
-1 ≦ sinValue ≦ 1
-Math.Pi / 2 ≦ Math.ArcSin(sinValue) ≦ Math.Pi / 2
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.