Author | Message |
---|---|
nmanimt2
Posts: 8
|
Posted 18:33 Oct 22, 2016 |
If the numerator is zero, do you want us to print 0 over whatever the denominator is or just 0? |
jhurley
Posts: 207
|
Posted 18:50 Oct 22, 2016 |
write your simplify method so that it reduces this to 0/1 |
nmanimt2
Posts: 8
|
Posted 21:58 Oct 22, 2016 |
what about 0 in denominator, 1/0 ? undefined? or iniinity? |
jhurley
Posts: 207
|
Posted 10:18 Oct 23, 2016 |
keep the numerator but make the toString() show "undefined" |