Repository navigation
Category Mathematical Functions
Paul Squires edited this page Oct 19, 2026
·
2 revisions
Home › All Categories › Mathematical Functions
Grouped by task. Numbers and math lists them beside the rest of the area.
| Function | What it does | From |
|---|---|---|
| Int | Returns the largest whole number not above the value, so Int(-1.3) is -2. | built-in |
| Fix | Returns the whole-number part, rounding towards zero, so Fix(-4.9) is -4. | built-in |
| Frac | Returns the fractional part, keeping the sign, so Frac(-1.75) is -0.75. | built-in |
| Function | What it does | From |
|---|---|---|
| Abs | Returns the absolute value of a number. | built-in |
| Sgn | Returns -1, 0 or 1 for the sign of a number, in the number's own type. | built-in |
| Function | What it does | From |
|---|---|---|
| Sqr | Returns the square root of a number. | built-in |
| Exp | Returns e raised to a power. | built-in |
| Log | Returns the natural logarithm; zero gives minus infinity and a negative gives NaN. | built-in |
| Function | What it does | From |
|---|---|---|
| Sin | Returns the sine of an angle in radians. | built-in |
| Cos | Returns the cosine of an angle in radians. | built-in |
| Tan | Returns the tangent of an angle in radians. | built-in |
| Asin | Returns the angle in radians, from -pi/2 to pi/2, whose sine is the number. | built-in |
| Acos | Returns the angle in radians, from 0 to pi, whose cosine is the number. | built-in |
| Atn | Returns the angle in radians, from -pi/2 to pi/2, whose tangent is the number. | built-in |
| Atan2 | Returns the angle in radians, from -pi to pi, of the point at x, y. | built-in |
| Function | What it does | From |
|---|---|---|
| Rnd | Returns a random Double from 0 up to but not including 1. | built-in |
| Randomize | Seeds the random number generator that Rnd uses, and can choose its algorithm. | built-in |
tiko-lang · Home · Feature Index · Keyword Index · License
FreeBASIC manual pages reproduced under the GNU FDL 1.3.
- Home
- What Is tiko-lang
- Quick Start
- Installing on macOS
- Debugging
- Feature Index
- Compatibility
- FAQ
- AI Cheatsheet
- Generics
- Interfaces
- For Each
- Iterators
- Tuples
- Array Results
- Defer
- Lambdas
- Block Strings
- Partial Types
- String Slices
- Embed
- Typed Variadics
- C Header Import
- Foreign Library Linking
- UString
- Fixed-Width Types
- Nullptr
- String Library
- Format
- Array
- Map
- Set
- LinkedList
- OrderedMap
- OrderedSet
- Sorting
- Optional
- Result
- Smart Pointers
- Date and Time (Chrono)
- Time Zones
- Filesystem
- File Streams
- Config (INI and TOML)
- Codec
- Hash
- UUID
- OS
- Process
- Net
- HTTP and TLS
- Math Library
- Finance
- Logging
- Terminal TUI Library
- PsControls
- tkControls
- sys/win
- Goroutines and Channels
- LLVM Backend
- tiko build
- TIKO_COMPILER
- Variable Declarations
- Standard Data Types
- User Defined Types
- Procedures
- Operators
- Control Flow Statements
- Converting Data Types
- Array Functions
- String Functions
- Mathematical Functions
- Bit Manipulation
- Date and Time Functions
- File I/O Functions
- Console Functions
- User Input (Runtime Library)
- User Input Functions (Graphics Library)
- Screen Functions
- 2D Drawing Functions
- Graphics Library Reference
- Graphics Keyword List
- Memory Functions
- Threading Support Functions
- Error Handling Functions
- Operating System Functions
- Preprocessor
- Intrinsic Defines
- Miscellaneous Keywords
- Modularizing