Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

is_float is a lot better than not is_integer...

  • Loading branch information...
commit 1b8e85f2e349a988eeeedccf73b20799a4c75ff5 1 parent 66936d8
Rune Juhl Jacobsen authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/filter_lib/erlydtl_dateformat.erl
2  src/filter_lib/erlydtl_dateformat.erl
View
@@ -359,7 +359,7 @@ monthname(12) -> "december";
monthname(_) -> "???".
% Utility functions
-integer_to_list_zerofill(N) when not is_integer(N) ->
+integer_to_list_zerofill(N) when is_float(N) ->
integer_to_list_zerofill(erlang:round(N));
integer_to_list_zerofill(N) when N < 10 ->
lists:flatten(io_lib:format("~2..0B", [N]));
Please sign in to comment.
Something went wrong with that request. Please try again.