SA-MP Forums Archive
my quest Answer, please. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: my quest Answer, please. (/showthread.php?tid=178821)



my quest Answer, please. - blinr91@gmail.com - 24.09.2010

Answer, please.

The .. Real number variables in the "." Number behind

There's a way to obtain let me know.


Ex new Float:Test;

Test = 3.14;
3.14 = 0.14

ex2

Text = 5.23;
5.23 = 0.23


i'm from korea.
I'm very aware I can not speak English.
Please forgive me.


RE:

stock strfloatValue(Float:cval)
{
new str[32];
new getval;
format(str,sizeof(str),"%.2f",cval);
getval = strfind(str, ".", true);
format(str[getval], 12, "Doller%dSent",cval);
return str;
}

<< ERROR!!!


Re: my quest Answer, please. - Wennicke - 24.09.2010

I don't get it?


Re: my quest Answer, please. - blinr91@gmail.com - 24.09.2010

no!!!!!!


Re: my quest Answer, please. - sekol - 24.09.2010

what are you talking about? As we can see noone understands you....


Re: my quest Answer, please. - blinr91@gmail.com - 24.09.2010

stock strfloatValue(Float:cval)
{
new str[32];
new getval;
format(str,sizeof(str),"%.2f",cval);
getval = strfind(str, ".", true);
format(str[getval], 12, "Doller%dSent",cval);
return str;
}

are u know?

T-T


Re: my quest Answer, please. - -Sneaky- - 24.09.2010

https://sampwiki.blast.hk/wiki/Floatround

pawn Код:
new Float:Test;
new Float:Quest;

Test = 3.14;

Quest = floatround(Test, floatround_floor);

printf("%f",Test - Quest); // 0.1400000
I think this is what you want?

Edit: Post here next time: http://forum.sa-mp.com/forumdisplay.php?f=12


Re: my quest Answer, please. - blinr91@gmail.com - 24.09.2010

Wow !! good job lol

!!!!!!!!!Thank you!