wolfendale / scala-nunjucks

5 stars 1 forks source link

Edge cases for Numerics #29

Open suyangyu opened 4 years ago

suyangyu commented 4 years ago

There are some subtle differences to certain Numerics special case calculations:

1/0 should be Infinity -1/0 should be -Infinity 0/0 should be NaN

Currently they all output Infinity

Given how unlikely it is for these to occur in templates, it is a low priory issue