tpl: Add math.Ceil, Floor, and Round
authorCameron Moore <moorereason@gmail.com>
Sun, 24 Sep 2017 01:07:55 +0000 (20:07 -0500)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 24 Sep 2017 08:06:14 +0000 (10:06 +0200)
commit19c5910485242838d6678c2aacd8501f7e646a53
tree3430c91d257dae583dcd2556b68c8a8818ddbcf1
parent80c7ea60a0e0f488563a6b7311f3d4c23457aac7
tpl: Add math.Ceil, Floor, and Round

Ceil and Floor are frontends for the stdlib math functions. The Round
implementation is essentially the same thing except that the Go stdlib
doesn't include a Round implementation in a stable release yet.  I've
included the Round function slated for Go 1.10.

Fixes #3883
tpl/math/math.go
tpl/math/math_test.go
tpl/math/round.go [new file with mode: 0644]