Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dida Adams Arizona
Tia-dev
Commits
eafe2579
Commit
eafe2579
authored
Dec 29, 2021
by
syadziy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push rounding math
parent
1a05bda9
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
34 deletions
+38
-34
CorporateAnnualTarget.js
src/container/BudgetTahunan/CorporateAnnualTarget.js
+33
-34
Utils.js
src/library/Utils.js
+5
-0
No files found.
src/container/BudgetTahunan/CorporateAnnualTarget.js
View file @
eafe2579
This diff is collapsed.
Click to expand it.
src/library/Utils.js
View file @
eafe2579
...
@@ -5,4 +5,9 @@ export function titleCase(text) {
...
@@ -5,4 +5,9 @@ export function titleCase(text) {
// .replace(/\s(.)/g, function($1) { return $1.toUpperCase(); })
// .replace(/\s(.)/g, function($1) { return $1.toUpperCase(); })
return
value
return
value
}
export
function
roundMath
(
number
,
decimalPlaces
)
{
const
factorOfTen
=
Math
.
pow
(
10
,
decimalPlaces
)
return
Math
.
round
(
number
*
factorOfTen
)
/
factorOfTen
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment