Results 1 to 2 of 2

Thread: integer to decimal

  1. #1

    Thread Starter
    Member
    Join Date
    May 2000
    Location
    London, UK
    Posts
    39

    Angry

    I am trying to change the reciving the following values into a asp page, which I have created using vbscript.

    The values are as follows:

    50545555

    and

    -00133333.

    I want to change these values before processing them , to decimal values e.g

    50545555 to be 50.545555

    and -00133333 to be -001.33333.

    What is the variable in vbscript will allow me to do this as I am not from a visual basic background.

    Please help me on this.


    thanks and regards


    asap

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    is this any help?

    Code:
    <%@ Language=VBScript %> 
    <html> 
    <head> 
    
    </head><body>  
    <% 
    Response.Write(50545555 / 1000000)
    Response.Write "<BR>"
    Response.Write(-00133333  / 100000)
    
    %> 
    
    
    </body> 
    
    </html>
    Mark
    -------------------

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