ASP Floating point number presision

Posted on 2005-05-10
Last Modified: 2012-05-05
im trying to do the equivelent of Printf("%9.0f",variable); in asp.

so i have a variable and am trying to print it with response.write(variable) or the shortcut <%=variable%>

but i dont want 4656533.23454 to display how can I control this in ASP?
Question by:PhilippeT
    LVL 7

    Accepted Solution


    Author Comment

    Thanks a million I even looked at tha website obviously not well enought easy 125 points for you :)
    LVL 7

    Expert Comment

    :) It so happens ....we miss obvious things ...


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
    I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now