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.

DarkBASIC Professional Discussion / Integer to string conversion

Author
Message
thecartm
14
Years of Service
User Offline
Joined: 30th Mar 2012
Location: In your closet, hiding....
Posted: 25th Apr 2012 23:18
I would like to know how to convert an integer value into a string value, like if piewas a changing number and I want score to be what pie is to print using text command.


PS, please don't write "OMG U NOOB GET OFF TEH FORUM IDK Y U WRITE MINDLESS CRAP I H8 U NOOB"

Hah, my signature is meaningless.
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 25th Apr 2012 23:34
Try this:

Millenium7
21
Years of Service
User Offline
Joined: 13th Dec 2004
Location:
Posted: 26th Apr 2012 09:06
Quote: ""OMG U NOOB GET OFF TEH FORUM IDK Y U WRITE MINDLESS CRAP I H8 U NOOB""


does anybody do that on these forums? i've never encountered a more helpful place. Certainly never seen any attitude like this

as mentioned above str$() will convert integers and floats
Also keep in mind that str$() will treat numbers as integers unless told otherwise. I.e. if you use


So instead you need at least 1 number to be a float. Either of these would work

Login to post a reply

Server time is: 2026-07-11 11:40:33
Your offset time is: 2026-07-11 11:40:33