ryu-ecmascript 0.1.1

Fast floating point to string conversion, suitable for ECMAScript NumberToString
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
macro_rules! check {
    ($ryu:tt, $pretty:tt) => {
        assert_eq!($ryu, $pretty);
        assert_eq!(print($ryu), stringify!($ryu));
        assert_eq!(pretty($pretty), stringify!($pretty));
    };
    (-$ryu:tt, -$pretty:tt) => {
        assert_eq!(-$ryu, -$pretty);
        assert_eq!(print(-$ryu), concat!("-", stringify!($ryu)));
        assert_eq!(pretty(-$pretty), concat!("-", stringify!($pretty)));
    };
}