mirror of
https://github.com/MikeMcl/decimal.js.git
synced 2024-10-27 20:34:12 +00:00
Added test for floating point numbers in toRadixString.
This commit is contained in:
parent
abf5f3ded5
commit
25ff1b1710
@ -217,5 +217,12 @@ T('toRadixString', function () {
|
|||||||
t("6g35112", 10000000000, 34);
|
t("6g35112", 10000000000, 34);
|
||||||
t("5fdv5ap", 10000000000, 35);
|
t("5fdv5ap", 10000000000, 35);
|
||||||
t("4ldqpds", 10000000000, 36);
|
t("4ldqpds", 10000000000, 36);
|
||||||
|
|
||||||
|
t("110010.01", 50.25, 2);
|
||||||
|
t("302.1", 50.25, 4);
|
||||||
|
t("62.2", 50.25, 8);
|
||||||
|
t("50.25", 50.25, 10);
|
||||||
|
t("32.4", 50.25, 16);
|
||||||
|
t("1e.9", 50.25, 36);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user