Results 1 to 2 of 2

Thread: VBscript decimal

Hybrid View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2001
    Location
    Bahrain
    Posts
    25

    VBscript decimal

    I creat a VBscript function and
    I have a var myno=0.0
    I want the value of it contain only one decimal but when the number display in the screen it giv me like that 3.43445454 how can I make it 3.4
    Jaffar

  2. #2
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    VBScript questions in Java?

    Here's an answer:

    Use:
    FormatNumber(3.43445454, 1)

    If all you want is the first decimal digit alone.


    Use:
    Round(3.43445454, 1)

    If you want to round the number to the first decimal digit.


    Chris
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width