For your second question read this post from @Fox ,
maybe its what you need. Its in Russian, but you can
use translator. There is an example script too >
How can i convert -0.01 to 0.01 in variable
-
Hey @lother,
Best part about BAS is the JavaScript functionality it has!
Here's a little script to turn a number into a positive with JavaScript's Math.abs() function.