Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
JOSS
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Functions=== The language contained the following built-in functions: ====Math==== * {{code|sin()}} - Sine of an angle given in radians * {{code|cos()}} - Cosine * {{code|arg()}} - Takes X and Y values of a point and returns the angle between that point and the x-axis * {{code|log()}} - Naperian log * {{code|exp()}} - Natural base to the power of the argument * {{code|sqrt()}} - Square root * {{code|sgn()}} - Sign of the argument, 0 returns 0, -ve values -1, +ve +1 * {{code|ip()}} - Integer part of the argument, {{code|ip(22026.4658)}} returns 22026 * {{code|fp()}} - Fractional part, returns .4658 * {{code|dp()}} - Digit part, returns 2.20264658 * {{code|ep()}} - Exponent part, returns 4, the location of the decimal ====Boolean==== * {{code|tv()}} - Truth value, returns 1 if the expression is true, 0 otherwise ====Looping functions==== JOSS also defined a number of functions that performed looping internally, in order to avoid the programmer having to write a {{code|For}} loop to perform simple tasks like summing a series of numbers. The parameters could be either a list of simple expressions separated by commas, or a range construct whose command could be any statement or function call. * {{code|max()}} - Maximum value of the provided expressions * {{code|min()}} - Minimum * {{code|sum()}} - Sum * {{code|prod()}} - Product * {{code|first()}} - First item in the list that matches a condition, returns that result
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)