Skip to content

Commit

Permalink
Fix Pct ".%" issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed Dec 10, 2017
1 parent 73e3feb commit 7ca7074
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 15 additions & 2 deletions lib/js/src/private/encode.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/private/encode.re
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ external animatedValue : AnimatedRe.Value.t => Js.Json.t = "%identity";

external interpolatedValue : AnimatedRe.Interpolation.t => Js.Json.t = "%identity";

let pct = (pct) => string(string_of_float(pct) ++ "%");
let pct = (pct) => string(Printf.sprintf("%.2f%%", pct));

0 comments on commit 7ca7074

Please sign in to comment.