Jump to content

How I can round a number with decimals


danyra

Recommended Posts

I have two instances:

 

1) I have the number for example 1.025, and I want the computer give me as answer 1.10, 

other example will be: I have 1.08, and I want the computer give me as answer 1.10.

its like a rounding up.

 

2)I have the number for example 0.7625, and I want the computer give me as answer 0, 7

other example will be: I have 0.51, and I want the computer give me as answer 0.5

(can use the first decimal)

its like a rounding down

 

¿How can I do? the code "round" doesnt exist anymore.

 

Link to comment
Share on other sites

13 hours ago, Lee Mac said:

_$ (LM:roundup 1.025 0.1) 1.1 _$ (LM:roundup 1.08 0.1) 1.1 _$ (LM:rounddown 0.7625 0.1) 0.7 _$ (LM:rounddown 0.51 0.1) 0.5

THANKS ITS WORKS :) 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...