Skip to content

Update how our util functions round numbers#1865

Merged
david-crespo merged 3 commits intomainfrom
update-round
Dec 17, 2023
Merged

Update how our util functions round numbers#1865
david-crespo merged 3 commits intomainfrom
update-round

Conversation

@charliepark
Copy link
Contributor

Fixes #1864

@vercel
Copy link

vercel bot commented Dec 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Dec 17, 2023 2:27am

<div>
{allocated - provisioned} {unit && <span className="text-tertiary">{unit}</span>}
{round(allocated - provisioned, 2)}
{unit && <span className="text-tertiary"> {unit}</span>}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah so we did forget to round! the mistake was assuming the difference of two rounded numbers would remain rounded. JAVASCRIPT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Utilization Summary: Available quantity of resources should be kept to two decimals

2 participants