Browse Source

add 'short' to jsone:float_format_option

Zeyu Zhang 2 years ago
parent
commit
30b1846954
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/jsone.erl

+ 1 - 1
src/jsone.erl

@@ -130,7 +130,7 @@
 
 
 -type json_scalar() :: json_boolean() | json_number() | json_string().
 -type json_scalar() :: json_boolean() | json_number() | json_string().
 
 
--type float_format_option() :: {scientific, Decimals :: 0..249} | {decimals, Decimals :: 0..253} | compact.
+-type float_format_option() :: {scientific, Decimals :: 0..249} | {decimals, Decimals :: 0..253} | compact | short.
 %% `scientific': <br />
 %% `scientific': <br />
 %% - The float will be formatted using scientific notation with `Decimals' digits of precision. <br />
 %% - The float will be formatted using scientific notation with `Decimals' digits of precision. <br />
 %%
 %%