Jump to content

Recommended Posts

Posted (edited)

 

Hi there, I have a small problem, and I dont know how to fix it. 

 

Example :  

  Reveal hidden contents

So, we know 1.09549 - 1.09548 ... will be : 0.00001 

But no, see this , look at this picture.   (Attach file)

That is : 1e-005   , NOT 0.00001

 

=====

I used ROUND ()  to fix this , but I cant.

$c1 = Round ($c,5)

 

So, any body please help me.  Thanks :)

 

 

 

 

 

number1.png

Edited by kctvt
Posted (edited)

@kctvt,

you need to reformat the output, like this:

$b = 1.09549
$a = 1.09548
$c = $b - $a
MsgBox(0, '', StringFormat('%.5f', $c))

EDIT: to clarify, this is only a visual representation. the actual numeric value is correct, 1e-005 = 0.00001

Edited by orbs

Signature - my forum contributions:

  Reveal hidden contents

 

Posted
  On 10/31/2016 at 11:15 AM, orbs said:

@kctvt,

you need to reformat the output, like this:

$b = 1.09549
$a = 1.09548
$c = $b - $a
MsgBox(0, '', StringFormat('%.5f', $c))

EDIT: to clarify, this is only a visual representation. the actual numeric value is correct, 1e-005 = 0.00001

Expand  

Hi Orbs , it worked :) Thanks. You saved my life yesterday :) 

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...