We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6f020e commit ab3a273Copy full SHA for ab3a273
src/index.ls
@@ -4,6 +4,7 @@ round = (n, d = 5) ->
4
p = Math.pow(10, d)
5
ret = "#{Math.round(n * p ) / p}".split(".")
6
+(ret.0 + (if ret.1 => "." + ret.1.substring(0,d) else ""))
7
+ # or use this: +(n).toFixed(d)
8
9
sample-func = (t) ->
10
Math.abs(Math.sin(Math.pow(3 * t + 1.77, 2)) / ( Math.pow(3 * t + 2, 5 * t) + 1))
0 commit comments