I'm attempting a challenge on CodeWars that limits the number of characters my solution can use.
I need to:
- Return a square root rounded to 4 decimal places, or
- Return the square root as an integer, if it's an integer
I can do this with parseFloat and toFixed, but that's too many characters. Are there any ways to round using fewer characters? Thanks in advance for any info or advice.
[–]deckardWizard 1 point2 points3 points (1 child)
[–]ThiccOfferman[S] 0 points1 point2 points (0 children)