Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Changing the fractions of a variable shown

Author
Message
Doveyy04
12
Years of Service
User Offline
Joined: 30th Apr 2012
Location:
Posted: 30th Jul 2013 22:31
Hi when I use a real number variable and do some calculations I am given the end result in a 6 digit fraction ie 54.452507. Is there anyway to get the program to only show a 3 digit fraction so the result would be 54.452. Thanks for any help
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 30th Jul 2013 22:39
The Str command used to display text can be used to specify the number of decimal values to show.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Doveyy04
12
Years of Service
User Offline
Joined: 30th Apr 2012
Location:
Posted: 30th Jul 2013 23:23
Thanks that's great, so simple really now I feel stupid lol

Login to post a reply

Server time is: 2024-11-24 18:47:25
Your offset time is: 2024-11-24 18:47:25