that tip calculator could do with some rounding 😆
Hey I didn't get what you mean by rounding? But from the emoticon I think that's something funny...
I mean rounding up to like 2 decimals or so; nobody tips 0.0000000000001 xD
Oh Got It! I know too late to reply, but yes, you may just use the Math.round(x) function for that. No decimal places better than 2!
Math.round(x)
It's about rounding the tips (we can't tip 0.0000001 🤣)
Probably rounded corners. But I think it was just a friendly jab.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
that tip calculator could do with some rounding 😆
Hey I didn't get what you mean by rounding? But from the emoticon I think that's something funny...
I mean rounding up to like 2 decimals or so; nobody tips 0.0000000000001 xD
Oh Got It!
I know too late to reply, but yes, you may just use the
Math.round(x)
function for that. No decimal places better than 2!It's about rounding the tips (we can't tip 0.0000001 🤣)
Probably rounded corners.
But I think it was just a friendly jab.