Repository navigation
Category Converting Data Types
Paul Squires edited this page Oct 19, 2026
·
2 revisions
Home › All Categories › Converting Data Types
Grouped by task. Numbers and math lists them beside the rest of the area.
| Function | What it does | From |
|---|---|---|
| CInt | Converts a number or string to an Integer, rounding to the nearest; no overflow check. | built-in |
| CUInt | Converts a number or string to a UInteger, rounding to the nearest; no overflow check. | built-in |
| CByte | Converts a number or string to a Byte, rounding to the nearest; no overflow check. | built-in |
| CUByte | Converts a number or string to a UByte, rounding to the nearest; no overflow check. | built-in |
| CShort | Converts a number or string to a Short, rounding to the nearest; no overflow check. | built-in |
| CUShort | Converts a number or string to a UShort, rounding to the nearest; no overflow check. | built-in |
| CLng | Converts a number or string to a 32-bit Long, rounding to the nearest; no overflow check. | built-in |
| CULng | Converts a number or string to a 32-bit ULong, rounding to the nearest; no overflow check. | built-in |
| CLngInt | Converts a number or string to a 64-bit LongInt, rounding to the nearest. | built-in |
| CULngInt | Converts a number or string to a 64-bit ULongInt, rounding to the nearest. | built-in |
| CDbl | Converts a number or string to a Double. | built-in |
| CSng | Converts a number or string to a Single. | built-in |
| CBool | Converts a number, or the text "true" or "false", to a boolean; zero gives false. | built-in |
| Cast | Converts a value to any named type, such as Cast(Byte, flag). | built-in |
| CPtr | Converts a pointer or an integer to the given pointer type. | built-in |
| CSign | Converts an unsigned value to signed, so division and shifts treat it as signed. | built-in |
| CUnsg | Converts a signed value to unsigned, so division and shifts treat it as unsigned. | built-in |
| Function | What it does | From |
|---|---|---|
| Str | Returns a number or boolean as text. | built-in |
| WStr | Returns a number as a wide string. | built-in |
| Val | Converts text to a double. | built-in |
| ValInt | Converts text to a 32-bit integer. | built-in |
| ValLng | Converts text to a 64-bit integer. | built-in |
| ValUInt | Converts text to an unsigned 32-bit integer. | built-in |
| ValULng | Converts text to an unsigned 64-bit integer. | built-in |
tiko-lang · Home · Feature Index · Keyword Index · License
FreeBASIC manual pages reproduced under the GNU FDL 1.3.
- Generics
- Interfaces
- For Each
- Iterators
- Tuples
- Array Results
- Defer
- Lambdas
- Block Strings
- 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)
- 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