integrates nicefloats into jsx
This commit is contained in:
parent
0c3dbaab6c
commit
32c9a1f00f
11 changed files with 39 additions and 180 deletions
|
@ -221,7 +221,7 @@ list_to_events([], Acc) ->
|
|||
term_to_event(List) when is_list(List) ->
|
||||
term_to_events(List);
|
||||
term_to_event(Float) when is_float(Float) ->
|
||||
[{float, nicefloats:format(Float)}];
|
||||
[{float, jsx_utils:nice_decimal(Float)}];
|
||||
term_to_event(Integer) when is_integer(Integer) ->
|
||||
[{integer, erlang:integer_to_list(Integer)}];
|
||||
term_to_event(String) when is_binary(String) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue