Ask a Question related to Macromedia Director Basics, Design and Development.
-
djmasala.com #1
Decimal places!
Hi fellow Director users!,
I had a countdown timer (75 seconds)
for a game, and I wanted to display the time taken to complete it, in a
field. So, I used the following code: -
put 75 - field "myTime5" & " seconds" into field "s5result".
....BUT, that resulted in the time having .0000 after the number of seconds.
How would I get rid of these zero digits?
Thanks!
--
[url]www.djmasala.com[/url]
djmasala.com Guest
-
Rounding decimal places
What is the best and most acurate way to round a number to 2 decimal places. It has the be a correctly rounded number not just a mask.. eg: round... -
Rounding to 2 decimal places
I have this placed in my code <%Response.write(Session("MembershipCost"))%> the number it contains is 605 how do i use the round Function to... -
To 2 decimal places
Folks, I know some of you here are extremely dynamic. I am working with a variable that is declared as a decimal. But I want to convert the... -
How to ensure 2 places to right of decimal
How can I make certain that decimal values print out 2 places to the right all the time when displaying them on a website coming from an Access... -
do not cut decimal places
Hi, following problem (oracle8): I want to insert a value with precision (#.##) in a number(10,2) column. It works but the values which end with... -
djmasala.com #2
Re: Decimal places!
I take it no-one know then...
"djmasala.com" <potatoes@blueyonder.co.uk> wrote in message
news:sHH7b.13911$sY3.7402@news-binary.blueyonder.co.uk...seconds)> Hi fellow Director users!,
> I had a countdown timer (75seconds.> for a game, and I wanted to display the time taken to complete it, in a
> field. So, I used the following code: -
>
> put 75 - field "myTime5" & " seconds" into field "s5result".
>
> ...BUT, that resulted in the time having .0000 after the number of> How would I get rid of these zero digits?
>
> Thanks!
>
> --
> [url]www.djmasala.com[/url]
>
>
djmasala.com Guest
-
FOF #3
Re: Decimal places!
You need to look up and use the floatPrecision command. Its on page 245 of
the Director MX lingo Dictonary.
Rod
FOF
"djmasala.com" <potatoes@blueyonder.co.uk> wrote in message
news:sHH7b.13911$sY3.7402@news-binary.blueyonder.co.uk...seconds)> Hi fellow Director users!,
> I had a countdown timer (75seconds.> for a game, and I wanted to display the time taken to complete it, in a
> field. So, I used the following code: -
>
> put 75 - field "myTime5" & " seconds" into field "s5result".
>
> ...BUT, that resulted in the time having .0000 after the number of> How would I get rid of these zero digits?
>
> Thanks!
>
> --
> [url]www.djmasala.com[/url]
>
>
FOF Guest



Reply With Quote

