Page 1 of 2

4.0 version

Posted: Thu Jun 19, 2014 9:15 am
by Mr. Kibernetik
New function will be added:

SYSTEM_LANGUAGE$ ()
returns current user language in format ISO 639-1.

Re: 4.0 version

Posted: Thu Jun 19, 2014 9:36 am
by Mr. Kibernetik
New function will be added:

FRACT (x)
returns fractional part of number [x].

Re: 4.0 version

Posted: Thu Jun 19, 2014 10:30 am
by Mr. Kibernetik
New function will be added:

INTEG (x)
returns integral part of number [x].

Re: 4.0 version

Posted: Thu Jun 19, 2014 1:56 pm
by Mr. Kibernetik
New functions will be added:

EVEN (x)
returns 1 if real value [x] is even. Otherwise returns 0.

ODD (x)
returns 1 if real value [x] is odd. Otherwise returns 0.

Re: 4.0 version

Posted: Sun Jun 22, 2014 5:43 pm
by Mr. Kibernetik
Accelerometer will be stabilized internally.

Re: 4.0 version

Posted: Sun Jun 22, 2014 7:24 pm
by Mr. Kibernetik
New command will be added:

FONT f$ LOAD n$
loads TTF-font from file [f$]. Font name is saved to string variable [n$].

Image

Re: 4.0 version

Posted: Mon Jun 23, 2014 4:56 am
by Mr. Kibernetik
New sample program "pseudo depth.txt" will be added to "Interactive interface" section.

Re: 4.0 version

Posted: Mon Jun 23, 2014 5:26 am
by Mr. Kibernetik
Sample program "play MIDI file.txt" in "Music & Sound" will be updated.

Re: 4.0 version

Posted: Mon Jun 23, 2014 8:51 am
by Henko
Mr. Kibernetik wrote:New function will be added:

INTEG (x)
returns integral part of number [x].
What is the difference between integ() and floor() ?

(When floor() was introduced, the meaning of int() was changed, causing a lot of troubles in existing programs. I had to replace all int()'s by floors()'s. Are we now going to switch from floor() to integ()? )

Re: 4.0 version

Posted: Mon Jun 23, 2014 9:05 am
by Mr. Kibernetik

Code: Select all

n=-2.6
p=2.6
print floor(n);integ(n);int(n);ceil(n)
print floor(p);integ(p);int(p);ceil(p)
gives output:

Code: Select all

-3 -2 -3 -2 
 2  2  3  3
Actually I am still very sorry for that move from standard INT to my own.
You together with ECMA-55 standard were sacrificed for the sake of my uderstanding of what is right and what is wrong. Plus my stupidity of not thinking beforehand about implementation of INT function. Sorry for that!!!