Jump to content
Sign in to follow this  
AutoMathic

Division without the reminder

Recommended Posts

Hi,

can I divide a number without the reminder? For example I have a $number = 9587 and I need to know how many thousands it is (the result should be 9).

 

The reason is I want to refine the output like this:
 

$Number = 9578
$Output = Round($Number/1000) & "." & Mod($Number, 1000)
Msgbox (0, "Result:", $Output)

Due to rounding the result looks like this: "10.587" but it should be like "9.587".

Thank you.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...