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 comment
10|10000 characters needed characters exceeded

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 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 comment
    10|10000 characters needed characters exceeded