Libraries
Mixed arithmetic Source Code
 previous   up   next 

Operator Summary
float
(in integer: summand1) + (in float: summand2)
Add an integer and a float number.
float
(in float: summand1) + (in integer: summand2)
Add a float and an integer number.
float
(in integer: minuend) - (in float: subtrahend)
Subtract a float from an integer number.
float
(in float: minuend) - (in integer: subtrahend)
Subtract an integer from a float number.
float
(in integer: factor1) * (in float: factor2)
Multiply an integer by a float number.
float
(in float: factor1) * (in integer: factor2)
Multiply a float by an [[integer] number.
float
(in integer: dividend) / (in float: divisor)
Divide an integer by a float number.
float
(in float: dividend) / (in integer: divisor)
Divide a float by an integer number.
rational
(in integer: summand1) + (in rational: summand2)
Add an integer and a rational number.
rational
(in rational: summand1) + (in integer: summand2)
Add a rational and an integer number.
rational
(in integer: minuend) - (in rational: subtrahend)
Subtract a rational from an integer number.
rational
(in rational: minuend) - (in integer: subtrahend)
Subtract an integer from a rational number.
rational
(in integer: factor1) * (in rational: factor2)
Multiply an integer by a rational number.
rational
(in rational: factor1) * (in integer: factor2)
Multiply a rational by an [[integer] number.
rational
(in integer: dividend) / (in rational: divisor)
Divide an integer by a rational number.
rational
(in rational: dividend) / (in integer: divisor)
Divide a rational by an integer number.
float
(in rational: summand1) + (in float: summand2)
Add a rational and a float number.
float
(in float: summand1) + (in rational: summand2)
Add a float and a rational number.
float
(in rational: minuend) - (in float: subtrahend)
Subtract a float from a rational number.
float
(in float: minuend) - (in rational: subtrahend)
Subtract a rational from a float number.
float
(in rational: factor1) * (in float: factor2)
Multiply a rational by a float number.
float
(in float: factor1) * (in rational: factor2)
Multiply a float by a [[rational] number.
float
(in rational: dividend) / (in float: divisor)
Divide a rational by a float number.
float
(in float: dividend) / (in rational: divisor)
Divide a float by a rational number.

Function Summary
float
float (in rational: aRational)
Convert a rational to a float.

Operator Detail

+

const func float: (in integer: summand1) + (in float: summand2)

Add an integer and a float number.

Returns:
the sum of the two numbers.

+

const func float: (in float: summand1) + (in integer: summand2)

Add a float and an integer number.

Returns:
the sum of the two numbers.

-

const func float: (in integer: minuend) - (in float: subtrahend)

Subtract a float from an integer number.

Returns:
the difference of the two numbers.

-

const func float: (in float: minuend) - (in integer: subtrahend)

Subtract an integer from a float number.

Returns:
the difference of the two numbers.

*

const func float: (in integer: factor1) * (in float: factor2)

Multiply an integer by a float number.

Returns:
the product of the two numbers.

*

const func float: (in float: factor1) * (in integer: factor2)

Multiply a float by an [[integer] number.

Returns:
the product of the two numbers.

/

const func float: (in integer: dividend) / (in float: divisor)

Divide an integer by a float number.

A / 0.0  returns  Infinity  for A > 0
A / 0.0  returns -Infinity  for A < 0
0 / 0.0  returns NaN
Returns:
the quotient of the division.

/

const func float: (in float: dividend) / (in integer: divisor)

Divide a float by an integer number.

A / 0    returns  Infinity  for A > 0.0
A / 0    returns -Infinity  for A < 0.0
0.0 / 0  returns NaN
Returns:
the quotient of the division.

+

const func rational: (in integer: summand1) + (in rational: summand2)

Add an integer and a rational number.

Returns:
the sum of the two numbers.

+

const func rational: (in rational: summand1) + (in integer: summand2)

Add a rational and an integer number.

Returns:
the sum of the two numbers.

-

const func rational: (in integer: minuend) - (in rational: subtrahend)

Subtract a rational from an integer number.

Returns:
the difference of the two numbers.

-

const func rational: (in rational: minuend) - (in integer: subtrahend)

Subtract an integer from a rational number.

Returns:
the difference of the two numbers.

*

const func rational: (in integer: factor1) * (in rational: factor2)

Multiply an integer by a rational number.

Returns:
the product of the two numbers.

*

const func rational: (in rational: factor1) * (in integer: factor2)

Multiply a rational by an [[integer] number.

Returns:
the product of the two numbers.

/

const func rational: (in integer: dividend) / (in rational: divisor)

Divide an integer by a rational number.

A / 0.0  returns  Infinity  for A > 0
A / 0.0  returns -Infinity  for A < 0
0 / 0.0  returns NaN
Returns:
the quotient of the division.

/

const func rational: (in rational: dividend) / (in integer: divisor)

Divide a rational by an integer number.

A / 0    returns  Infinity  for A > 0.0
A / 0    returns -Infinity  for A < 0.0
0.0 / 0  returns NaN
Returns:
the quotient of the division.

+

const func float: (in rational: summand1) + (in float: summand2)

Add a rational and a float number.

Returns:
the sum of the two numbers.

+

const func float: (in float: summand1) + (in rational: summand2)

Add a float and a rational number.

Returns:
the sum of the two numbers.

-

const func float: (in rational: minuend) - (in float: subtrahend)

Subtract a float from a rational number.

Returns:
the difference of the two numbers.

-

const func float: (in float: minuend) - (in rational: subtrahend)

Subtract a rational from a float number.

Returns:
the difference of the two numbers.

*

const func float: (in rational: factor1) * (in float: factor2)

Multiply a rational by a float number.

Returns:
the product of the two numbers.

*

const func float: (in float: factor1) * (in rational: factor2)

Multiply a float by a [[rational] number.

Returns:
the product of the two numbers.

/

const func float: (in rational: dividend) / (in float: divisor)

Divide a rational by a float number.

A / 0.0        returns  Infinity  for A > 0 / 1
A / 0.0        returns -Infinity  for A < 0 / 1
(0 / 1) / 0.0  returns NaN
Returns:
the quotient of the division.

/

const func float: (in float: dividend) / (in rational: divisor)

Divide a float by a rational number.

A / (0 / 1)    returns  Infinity  for A > 0.0
A / (0 / 1)    returns -Infinity  for A < 0.0
0.0 / (0 / 1)  returns NaN
Returns:
the quotient of the division.

Function Detail

float

const func float: float (in rational: aRational)

Convert a rational to a float.

Returns:
the float result of the conversion.


 previous   up   next