factor out float formatting into nicedecimal, include as dep
This commit is contained in:
parent
ed33626ed5
commit
620e6c7d91
4 changed files with 9 additions and 171 deletions
|
@ -139,7 +139,7 @@ encode(literal, Literal, _Opts) ->
|
|||
encode(integer, Integer, _Opts) ->
|
||||
erlang:integer_to_list(Integer);
|
||||
encode(float, Float, _Opts) ->
|
||||
jsx_utils:nice_decimal(Float).
|
||||
nicedecimal:format(Float).
|
||||
|
||||
|
||||
space(Opts) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue