- Fix
no_std
builds
- Use custom serde trait implementations
- Add
to_f64
to theToPrimitive
implementation. (Thanks: apelloni) - Fix
powf
for negative values. (Thanks: apelloni)
- Re-enable use of
std::mul_add
if thestd
feature is enabled (except on MinGW).
- Always use libm functions.
math_funcs
feature no longer requiresstd
.TwoFloat
is now#[repr(C)]
.
- Support
no_std
builds. (Thanks: joseluis)
- Re-enable MinGW support via libm.
- Add const constructor
from_f64
. (Thanks: joseluis) - Breaking change: remove MinGW support due to incorrect
fma
implementation - Breaking change: fix definition of no_overlap to match definition 1.4 in Joldes et al. (2017).
- Breaking change: Correct values of
MIN
andMAX
constants.
- Add operator overloads for
&f64
. - Breaking change: use
serde
as the feature flag name. - Breaking change: use helper struct for Serde serialization.
- Integrate with num_traits crate.
- Internal: use hexf to specify constants.
- Internals now checked with clippy.
- Breaking change: update error handling to make it more future-proof.
- Support Default trait.
- Breaking change: add specific implementations for
exp2
andlog2
functions. - Breaking change: update formatting, support exponential formats and precision specifiers.
- Add optional support for serde (feature
serde_support
). - Add conversions to/from
i128
andu128
. - Mathematical functions are optional but enabled by default (feature "math_funcs").
- Remove debugging code accidentally left in no_overlap function.
- Add
exp_m1
,ln_1p
functions.
- Breaking change: prefer value-like arguments to improve ergonomics.
- Breaking change: use
ConversionError
type to represent failure oftry_into
. - Breaking change: replace
try_new
anddata
with conversions to/from(f64, f64)
and[f64; 2]
. - Add
NAN
constant.
- Add
copysign
,hypot
,round
,signum
functions. - Add trigonometric functions
cos
,sin
,sin_cos
,tan
and inverse functionsasin
,acos
,atan
,atan2
. - Add Euclidean division and remainder functions
div_euclid
,rem_euclid
.
- Add
hi
andlo
functions to extract individual words. - Add angle conversion functions:
to_degrees
,to_radians
. - Add hyperbolic functions
cosh
,sinh
,tanh
and inverse functionsacosh
,asinh
,atanh
. - Update
is_valid
method to check for overlapping representations. - Bugfix in integer truncation where low word fraction was zero.
- Add functions:
cbrt
,exp
,exp2
,ln
,log
,log2
,log10
,powf
. - Add mathematical constants.
- Add functions:
recip
,max
,min
,fract
,trunc
,ceil
,floor
,sqrt
,powi
. - Add
%
and%=
operators.
- Initial release.