Skip to Content
author's profile photo Former Member
Former Member

scripts

Hi All,

I got a requirement in scripts that i need to print as bellow

my value is <b>91.768</b> but i need to print <b>0.768</b>

can any one help in this regard.

Best Regards,

Mahesh.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2006 at 07:35 AM

    Try storing that value into character field and fetch the portion after the decimal. Because i don't think there is a command to do this like 100.00(0.2) Try giving this also. This i've not tried anywhere.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2006 at 07:39 AM

    split var into var1 var2 seprated by '.'.

    and print value var2.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.