Checked Module
This module contains the basic arithmetic operations with overflow checks.
Functions and values
Function or value | Description |
Full Usage: x * y Parameters:
^T1 - The first value. y : ^T2 - The second value. Returns: ^T3 The product of the two input values. Modifiers: inline Type parameters: ^T1, ^T2, ^T3 |
Overloaded multiplication operator (checks for overflow)
|
Full Usage: x + y Parameters:
^T1 - The first value. y : ^T2 - The second value. Returns: ^T3 The sum of the two input values. Modifiers: inline Type parameters: ^T1, ^T2, ^T3 |
Overloaded addition operator (checks for overflow)
|
Full Usage: x - y Parameters:
^T1 - The first value. y : ^T2 - The second value. Returns: ^T3 The first value minus the second value. Modifiers: inline Type parameters: ^T1, ^T2, ^T3 |
Overloaded subtraction operator (checks for overflow)
|
Full Usage: ~-value Parameters:
^T - The input value. Returns: ^T The negated value. Modifiers: inline Type parameters: ^T |
Overloaded unary negation (checks for overflow)
|
Full Usage: byte value Parameters:
^T - The input value. Returns: byte The converted byte Modifiers: inline Type parameters: ^T |
Converts the argument to
|
Full Usage: char value Parameters:
^T - The input value. Returns: char The converted char Modifiers: inline Type parameters: ^T |
Converts the argument to
|
Converts the argument to
| |
Full Usage: int16 value Parameters:
^T - The input value. Returns: int16 The converted int16 Modifiers: inline Type parameters: ^T |
Converts the argument to
|
Full Usage: int32 value Parameters:
^T - The input value. Returns: int32 The converted int32 Modifiers: inline Type parameters: ^T |
Converts the argument to
|
Full Usage: int64 value Parameters:
^T - The input value. Returns: int64 The converted int64 Modifiers: inline Type parameters: ^T |
Converts the argument to
|
Full Usage: nativeint value Parameters:
^T - The input value. Returns: nativeint The converted nativeint Modifiers: inline Type parameters: ^T | |
Full Usage: sbyte value Parameters:
^T - The input value. Returns: sbyte The converted sbyte Modifiers: inline Type parameters: ^T |
Converts the argument to
|
Full Usage: uint16 value Parameters:
^T - The input value. Returns: uint16 The converted uint16 Modifiers: inline Type parameters: ^T |
Converts the argument to
|
Full Usage: uint32 value Parameters:
^T - The input value. Returns: uint32 The converted uint32 Modifiers: inline Type parameters: ^T |
Converts the argument to
|
Full Usage: uint64 value Parameters:
^T - The input value. Returns: uint64 The converted uint64 Modifiers: inline Type parameters: ^T |
Converts the argument to
|
Full Usage: unativeint value Parameters:
^T - The input value. Returns: unativeint The converted unativeint Modifiers: inline Type parameters: ^T |
Converts the argument to
|