Skip to content

Update round fraction example#1851

Merged
Alexandre887 merged 1 commit into
javascript-tutorial:masterfrom
kmourezz:patch-1
Aug 4, 2023
Merged

Update round fraction example#1851
Alexandre887 merged 1 commit into
javascript-tutorial:masterfrom
kmourezz:patch-1

Conversation

@kmourezz

Copy link
Copy Markdown
Contributor

In the particular example with multiplying and dividing by 100 there is no mistake. However using Math.round instead of Math.floor would be better. If it was a number 1.23567, the rounded result would be 1.24. But with the current Math.floor we still get 1.23 which is incorrect.

In the particular example with multiplying and dividing by 100 there is no mistake. However using `Math.round` instead of `Math.floor` would be better.
If it was a number `1.23567`, the rounded result would be `1.24`. But with the current `Math.floor` we still get `1.23` which is incorrect.
@javascript-translate-bot javascript-translate-bot added the review needed Review needed, please approve or request changes label May 28, 2023
@javascript-translate-bot javascript-translate-bot requested a review from a team May 28, 2023 11:22
@CLAassistant

CLAassistant commented May 28, 2023

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@Alexandre887 Alexandre887 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Спасибо.

@javascript-translate-bot javascript-translate-bot added needs +1 One more review needed and removed review needed Review needed, please approve or request changes labels Aug 4, 2023
@Alexandre887 Alexandre887 merged commit 3b62d9d into javascript-tutorial:master Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs +1 One more review needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants