fpa_log

log

log value for fpa type

Calling Sequence

log_value = fpa_log(fpa_object)
log_value = fpa_log(fpa_object, precision, round)

Overloaded usage:

log_value = log(fpa_object)

Arguments

log_value

a fpa object with log value

fpa_object

fpa object created

precision

precision: 2 bit or higher (53 bit by default)

round

round mode: a character ('N' by default)

'N': round to nearest (roundTiesToEven in IEEE 754-2008)

'Z': round toward zero (roundTowardZero in IEEE 754-2008)

'U': round toward plus infinity (roundTowardPositive in IEEE 754-2008)

'D': round toward minus infinity (roundTowardNegative in IEEE 754-2008)

'A': round away from zero

'F': faithful rounding

'R': round to nearest, with ties away from zero

Description

Get log value for fpa type

Examples

a = fpa_fi(exp(1))
b = log(a)

c = fpa_fi(exp(1),4)
d = fpa_log(c, 2, 'U')

Author