FSharpPlus


Generic Module

Generic numbers, functions and operators. By opening this module some common operators become restricted, like (+) to 'T->'T->'T

Nested modules

Modules Description

NumericLiteralG

Functions and values

Function or value Description

a * b

Full Usage: a * b

Parameters:
    a : ^Num
    b : ^Num

Returns: ^Num
Modifiers: inline
Type parameters: ^Num
a : ^Num
b : ^Num
Returns: ^Num

a + b

Full Usage: a + b

Parameters:
    a : ^Num
    b : ^Num

Returns: ^Num
Modifiers: inline
Type parameters: ^Num
a : ^Num
b : ^Num
Returns: ^Num

a - b

Full Usage: a - b

Parameters:
    a : ^Num
    b : ^Num

Returns: ^Num
Modifiers: inline
Type parameters: ^Num
a : ^Num
b : ^Num
Returns: ^Num

a / b

Full Usage: a / b

Parameters:
    a : ^Fractional
    b : ^Fractional

Returns: ^Fractional
Modifiers: inline
Type parameters: ^Fractional
a : ^Fractional
b : ^Fractional
Returns: ^Fractional

div a b

Full Usage: div a b

Parameters:
    a : ^Integral
    b : ^Integral

Returns: ^Integral
Modifiers: inline
Type parameters: ^Integral

Integer division. Same as (/) for Integral types.

a : ^Integral
b : ^Integral
Returns: ^Integral

divE a b

Full Usage: divE a b

Parameters:
    a : ^Integral
    b : ^Integral

Returns: ^Integral
Modifiers: inline
Type parameters: ^Integral

Euclidean integer division, following the mathematical convention where the mod is always positive.

a : ^Integral
b : ^Integral
Returns: ^Integral

divRemE D d

Full Usage: divRemE D d

Parameters:
    D : ^a
    d : ^a

Returns: ^a * ^a
Modifiers: inline

Euclidean division-remainder, following the mathematical convention where the mod is always positive.

D : ^a
d : ^a
Returns: ^a * ^a

fromIntegral x

Full Usage: fromIntegral x

Parameters:
    x : ^Integral

Returns: ^Num
Modifiers: inline
Type parameters: ^Integral, ^Num
x : ^Integral
Returns: ^Num

gcd x y

Full Usage: gcd x y

Parameters:
    x : ^Integral
    y : ^Integral

Returns: ^Integral
Modifiers: inline
Type parameters: ^Integral

Greatest Common Divisor.

x : ^Integral
y : ^Integral
Returns: ^Integral

rem a b

Full Usage: rem a b

Parameters:
    a : ^Integral
    b : ^Integral

Returns: ^Integral
Modifiers: inline
Type parameters: ^Integral

Remainder of Integer division. Same as (%).

a : ^Integral
b : ^Integral
Returns: ^Integral

remE a b

Full Usage: remE a b

Parameters:
    a : ^Integral
    b : ^Integral

Returns: ^Integral
Modifiers: inline
Type parameters: ^Integral

Euclidean remainder of integer division, following the mathematical convention where the mod is always positive.

a : ^Integral
b : ^Integral
Returns: ^Integral