my quest Answer, please.
#1

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!!!
Reply
#2

I don't get it?
Reply
#3

no!!!!!!
Reply
#4

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

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
Reply
#6

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
Reply
#7

Wow !! good job lol

!!!!!!!!!Thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)