Home
Forum
Rules
Search
Login
Register
December 30, 2024, 09:36:20 am
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join Soldat's community on Discord!
You can follow and get involved in the developing process at the development related channels, as well as play arranged competitive matches at the
#gather
channel.
Official Soldat Forums
Server Talk
Scripting Discussions and Help
(Moderators:
chrisgbk
,
Bonecrusher
)
integer to single?
« previous
next »
Pages: [
1
]
Author
Topic: integer to single? (Read 1075 times)
0 Members and 2 Guests are viewing this topic.
zop
Major
Posts: 81
integer to single?
«
on:
September 02, 2008, 03:29:15 am »
Is there any possible to transform integer to single? Or single to integer?
Logged
http://122.116.167.31:23238
:23238/galavela/?inc=player&name=%5BTomato+Bird%5D+Cibo[/size=1]
Norbo
Camper
Posts: 338
Re: integer to single?
«
Reply #1 on:
September 02, 2008, 03:45:42 am »
I dont think so, but what for? Single holds coordinates. Integer holds numbers. So you have a number, and u want to convert it to single? How about you just define a single already?
Logged
zakath
Inactive Soldat Developer
Veteran
Posts: 1224
Re: integer to single?
«
Reply #2 on:
September 02, 2008, 03:47:30 am »
integervariable :=strtoint(floattostr(roundto(singlevariable,0)));
singlevariable := strtofloat(inttostr(integervariable));
«
Last Edit: September 02, 2008, 03:49:16 am by zakath
»
Logged
#soldat.mapping - #soldat.inc - #soldatladder - #soldat.gather.nordic
zop
Major
Posts: 81
Re: integer to single?
«
Reply #3 on:
September 02, 2008, 09:26:08 am »
Thanks zakath ! That works !
Logged
http://122.116.167.31:23238
:23238/galavela/?inc=player&name=%5BTomato+Bird%5D+Cibo[/size=1]
iDante
Veteran
Posts: 1967
Re: integer to single?
«
Reply #4 on:
September 02, 2008, 01:49:35 pm »
int := round(flt);
Logged
zop
Major
Posts: 81
Re: integer to single?
«
Reply #5 on:
September 03, 2008, 07:14:25 pm »
Thank you iDante
Logged
http://122.116.167.31:23238
:23238/galavela/?inc=player&name=%5BTomato+Bird%5D+Cibo[/size=1]
Pages: [
1
]
« previous
next »
Official Soldat Forums
Server Talk
Scripting Discussions and Help
(Moderators:
chrisgbk
,
Bonecrusher
)
integer to single?