std/jule/types 
Index 
Variables
fn RealKindOf(kind: str): str
fn BitSizeOf(k: str): int
fn IntFromBits(bits: int): str
fn UintFromBits(bits: int): str
fn FloatFromBits(bits: int): str
fn CheckBitInt(v: str, bit: int): bool
fn CheckBitUint(v: str, bit: int): bool
fn CheckBitFloat(val: str, bit: int): bool
fn BitSizeOfFloat(x: f64): int
fn BitSizeOfInt(x: i64): int
fn BitSizeOfUint(x: u64): int
fn UpdateTarget()
fn MinI(mut k: str): i64
fn MaxI(mut k: str): i64
fn MaxU(mut k: str): u64
fn Min(mut k: str): f64
fn Max(mut k: str): f64
fn IsSigInt(mut k: str): bool
fn IsUnsigInt(mut k: str): bool
fn IsInt(k: str): bool
fn IsFloat(k: str): bool
fn IsCmplx(k: str): bool
fn IsNum(k: str): bool
fn IsSigNum(k: str): bool
Variables 
let BitSize = 0Bit-size of target architecture. Possible values are: 32, and 64. Initialized using build::Arch by the package when imported.
let SysInt = ""Signed integer kind of target architecture. Is equivalent to "int", but specific bit-sized integer kind. Initialized using build::Arch by the package when imported.
let SysUint = ""Unsigned integer kind of target architecture. Is equivalent to "uint" and "uintptr", but specific bit-sized integer kind. Initialized using build::Arch by the package when imported.
const (
	MaxF32             = 0x1p127 * (1 + (1 - 0x1p-23))
	MinF32             = -0x1p127 * (1 + (1 - 0x1p-23))
	SmallestNonzeroF32 = 0x1p-126 * 0x1p-23
	MaxF64             = 0x1p1023 * (1 + (1 - 0x1p-52))
	MinF64             = -0x1p1023 * (1 + (1 - 0x1p-52))
	SmallestNonzeroF64 = 0x1p-1022 * 0x1p-52
)Floating-point limit values. Max is the largest finite value representable by the type. SmallestNonzero is the smallest positive, non-zero value representable by the type.
const (
	MaxI8  = 1<<7 - 1  // 127
	MinI8  = -1 << 7   // -128
	MaxI16 = 1<<15 - 1 // 32767
	MinI16 = -1 << 15  // -32768
	MaxI32 = 1<<31 - 1 // 2147483647
	MinI32 = -1 << 31  // -2147483648
	MaxI64 = 1<<63 - 1 // 9223372036854775807
	MinI64 = -1 << 63  // -9223372036854775808
	MaxU8  = 1<<8 - 1  // 255
	MaxU16 = 1<<16 - 1 // 65535
	MaxU32 = 1<<32 - 1 // 4294967295
	MaxU64 = 1<<64 - 1 // 18446744073709551615
)Integer limit values.
const (
	I8       = "i8"
	I16      = "i16"
	I32      = "i32"
	I64      = "i64"
	U8       = "u8"
	U16      = "u16"
	U32      = "u32"
	U64      = "u64"
	F32      = "f32"
	F64      = "f64"
	Cmplx64  = "cmplx64"
	Cmplx128 = "cmplx128"
	Uint     = "uint"
	Int      = "int"
	Uintptr  = "uintptr"
	Bool     = "bool"
	Str      = "str"
	Any      = "any"
)Type kinds of primitive types. These kinds are must match keyword form itself.
RealKindOf 
fn RealKindOf(kind: str): strReturns kind's bit-specific kind if bit-specific like int, uint, and uintptr. Returns kind if not bit-specific. Bit-size is determined by runtime.
BitSizeOf 
fn BitSizeOf(k: str): intReturns kind's bit-size. Returns -1 if kind is not numeric.
IntFromBits 
fn IntFromBits(bits: int): strReturns signed integer kind by bit-size. Possible bit-sizes are: 8, 16, 32, and 64. Returns empty string if bits is invalid.
UintFromBits 
fn UintFromBits(bits: int): strReturns unsigned integer kind by bit-size. Possible bit-sizes are: 8, 16, 32, and 64. Panics if bits is invalid.
FloatFromBits 
fn FloatFromBits(bits: int): strReturns floating-point kind by bit-size. Possible bit-sizes are: 32, and 64. Panics if bits is invalid.
CheckBitInt 
fn CheckBitInt(v: str, bit: int): boolReports whether signed integer literal is compatible given bit-size.
CheckBitUint 
fn CheckBitUint(v: str, bit: int): boolReports whether unsigned integer literal is compatible given bit-size.
CheckBitFloat 
fn CheckBitFloat(val: str, bit: int): boolReports whether float literal is compatible given bit-size.
BitSizeOfFloat 
fn BitSizeOfFloat(x: f64): intReports minimum bit-size of given floating-point.
Possible values are:
- 32 for 32-bit
- 64 for 64-bit
BitSizeOfInt 
fn BitSizeOfInt(x: i64): intReports minimum bit-size of given signed integer.
Possible values are:
- 8 for 8-bit
- 16 for 16-bit
- 32 for 32-bit
- 64 for 64-bit
BitSizeOfUint 
fn BitSizeOfUint(x: u64): intReports minimum bit-size of given unsigned integer.
Possible values are:
- 8 for 8-bit
- 16 for 16-bit
- 32 for 32-bit
- 64 for 64-bit
UpdateTarget 
fn UpdateTarget()Updates platform-specific information based on the target. If you will update target configuration, you should call this function. In other words, new configurations is not applied for types.
MinI 
fn MinI(mut k: str): i64Returns minimum value of signed integer kinds. Panics if kind is invalid.
MaxI 
fn MaxI(mut k: str): i64Returns minimum value of signed integer kinds. Panics if kind is invalid.
MaxU 
fn MaxU(mut k: str): u64Returns maximum value of unsigned integer kinds. Panics if kind is invalid.
Min 
fn Min(mut k: str): f64Returns minimum value of signed/unsigned integer and floating-point kinds. Panics if kind is invalid.
Max 
fn Max(mut k: str): f64Returns maximum value of signed/unsigned integer and floating-point kinds. Panics if kind is invalid.
IsSigInt 
fn IsSigInt(mut k: str): boolReports whether kind is signed integer.
IsUnsigInt 
fn IsUnsigInt(mut k: str): boolReports kind is unsigned integer.
IsInt 
fn IsInt(k: str): boolReports whether kind is signed/unsigned integer.
IsFloat 
fn IsFloat(k: str): boolReports whether kind is float.
IsCmplx 
fn IsCmplx(k: str): boolReports whether kind is complex.
IsNum 
fn IsNum(k: str): boolReports whether kind is numeric.
IsSigNum 
fn IsSigNum(k: str): boolReports whether kind is signed numeric.