Trouble In Truncating Number into two Decimal Places

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Serenityquinn15
    New Member
    • Oct 2007
    • 30

    Trouble In Truncating Number into two Decimal Places

    Hi!
    I have a little trouble about in truncating numbers. What i want to do is to get the two decimal places.

    here's the example:

    when i try to get the half of 20500.39 it shows like this:10250.195
    but what i want to see is 10250.19 only.

    another one is 20500.42, it shows like this: 10250.2
    which in real, it must be 10250.21.

    what im going to do???
    here's my simple code for this:
    Text2.text=Int( (Text1/2)*100)/100
    please help me.
    tnx.
  • smartchap
    New Member
    • Dec 2007
    • 236

    #2
    You may try Format and Round functions.

    Comment

    Working...