Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I want to trim the stuff that is in my variable, how do i do this?

I tryed to do this, trim(variable) but it doesn't work.

 

I would be please if somebody could help me with this one.

Posted

Hmm ok that wasn't exactly what i ment :D

 

I have a double with 9 decimals i want to breng it back to 2

example: from 10,44444444499999900111 to 10,44

 

How do i dou that?

Posted

Dim dblX As Double
dblX = 10.444444444999998
dblX = CDbl(Format(dblX, "#.##"))
MsgBox(dblX)

 

Hope this helps.

Thanks & Regards,

zy_abc

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...