Skip to content

jba32/toFixed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Solution to https://github.com/gordonmzhu/beasts/issues/7

Overview

In AccountingJS 13, we looked at accounting.toFixed method. We found that we could improve the function by simulating calculations like 1.005 * 100 with 1.005e2 (using exponential notation).

Your job is to rewrite accounting.toFixed so that it does NOT use multiplication or exponential notation. Instead, you will actually move the decimal point using string manipulation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published