elm/core

Math and numbers

evancz opened this issue · 1 comments

The goal of this issue is to organize all of the math related issues in one place and categorize them so something coherent can be done.

API Suggestions

  • #238 - Add equivalent of Number.EPSILON to Basics
  • #190 - Change toFloat to number -> Float
  • #4 - change (%) to act on number types instead of Int
  • #342 - Change String.toFloat to accept NaN and Infinity and e but disallow .1

Math is weird because of JavaScript

  • #590 - integer division by zero
  • #92 - integer division that overflows 32-bits
  • #194 - exponentiation with negative integers
  • #591 - change Basics.truncate to behave differently
  • #862 - you can create NaN of type Int

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.