
If A is not a finite number, the fp64_frexp() Value v, such that v has a magnitude in the interval [1/2, 1) or zero,Īnd A equals v times 2 raised to the power *pexp. If A is a normal float point number, the fp64_frexp() function returns the The fp64_frexp() function is used to split the number A into a normalizedįraction and an exponent which is stored by pexp. frexp float64_t fp64_frexp (float64_t A, int *pexp) See fp64_fmod for further rules.Īvailable with release 1.08 onwards. If pointer a pointer np != NULL is passed, the value of n will be stored in *np.

The return value is Π/2 – n*y, where n is the quotient of x/(Π/2), rounded towards zero to an integer. Significand is rounded up, if bit 25 of significand of A is set.Īs the range of float is significandly smaller than float64_t, The following special cases apply: caseĬonverts a float64 to the float32 representing the same number.
#Fp64 use cases 64 Bit
div ( / ) float64_t fp64_div( float64_t A, float64_t B ) ĭivides two 64 bit floating point numbers and rounds result of A/B to a 64bit floating point number. fp64_cut_noninteger_fraction float64_t fp64_cut_noninteger_fraction( float64_t x ) Īlias to fp64_trunc, see there. The fp64_cotan() function returns the cotangent of x, which isĭefined mathematically as cos(x) / sin(x) or 1/tan(x). cotan float64_t fp64_cotan( float64_t x ) The fp64_cosh() function returns the hyperbolic cosine of x, which isĭefined mathematically as (exp(x) + exp(-x)) / 2. This works even if x or y are NaN, Inf or zero. The fp64_copysign() function returns x but with the sign of y. Rounds A upwards to the nearest integer greater or equal A.Ġ ) float64_t fp64_compare (float64_t A, float64_t B) Ĭompares the two values A and B and returns -1/0/1, based on the following rules: caseĬopysign float64_t fp64_copysign ( float64_t x, float64_t y )

The fp64_cbrt() returns the cubic root of x. atof float64_t fp64_atof( char *str ) Ĭonverts a string to a number, handles also NaN, +INF, -INF.Ī valid number (non NaN or INF) can be expressed by theįollowing regex: ?+\.?*(?+)? cbrt float64_t fp64_cbrt(float64_t x) The following special cases apply: caseĪvailable with release 1.1.20 onwards. Returns the arcus cosine of x, the inverse function to fp64_cos(). This works even if x is NaN, Inf or zero. Return absolute value of x, removing sign. Reference by Functional Groups here… abs float64_t fp64_abs( float64_t x)
