Timeline for Calculating the total value of an invoice with precision
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 26 at 22:26 | comment | added | radarbob |
Learning coding with BigInt is a good thing. Given that, unless you anticipate numbers larger than 2^23 - 1 there is no need for BigInt
|
|
Jun 26 at 22:21 | comment | added | radarbob | What is a "subTotal"? When does summing numbers evolve to subTotaling numbers? I don't see the purpose of making a distinction. | |
Jun 26 at 22:17 | comment | added | radarbob | JS docs say: ...by calling the BigInt() function (without the new operator) | |
Jun 26 at 17:04 | answer | added | Blindman67 | timeline score: 1 | |
Jun 26 at 14:15 | answer | added | J_H | timeline score: 2 | |
Jun 26 at 13:15 | comment | added | RoToRa |
I'm not sure if this is reviewable. This is just a collection of functions without explanation. Code reviews usually require runnable code. BTW, I'm not sure if "Big.js" is appropriate. You are handling exclusively integers and "Big.js" is a decimal library. JavaScript has a BigInt class built in.
|
|
Jun 26 at 11:41 | comment | added | Enrique Moreno Tent | I try to make as many deterministic functions without side effects as much as possible. | |
Jun 26 at 10:36 | history | edited | toolic | CC BY-SA 4.0 |
added 4 characters in body
|
Jun 26 at 10:30 | comment | added | Neil Meyer | Why are the constants declared in the limited scope of a function? | |
Jun 26 at 10:24 | history | asked | Enrique Moreno Tent | CC BY-SA 4.0 |