Raised This Month: $ Target: $400
 0% 

Litle small problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kriax
Senior Member
Join Date: Apr 2012
Old 06-03-2015 , 17:23   Litle small problem
Reply With Quote #1

Hello,

I have a small stupid problem that I can not solve.
I do a normal configuration by KeyValue

Code:
g_Ratio[g_iRatioCount][Ratio] = KvGetFloat(hKv, "ratio", 1.0);
In my config i have

Code:
"ratio"                "0.65"
And in game g_Ratio[g_iRatioCount][Ratio] return 0.649999





Anyone know why?
Thank you.

Kriax.
Kriax is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 06-03-2015 , 17:38   Re: Litle small problem
Reply With Quote #2

im no programmer/mathematician and stuff, but doesn't it return 0.64(9) ?
which actualy is 0.65 according to math if im not wrong
Depresie is offline
Kriax
Senior Member
Join Date: Apr 2012
Old 06-03-2015 , 17:49   Re: Litle small problem
Reply With Quote #3

Not because it gives 0.649999 and not 0.65 and the value is displayed in a menu :/
Kriax is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 06-04-2015 , 05:15   Re: Litle small problem
Reply With Quote #4

for what game is this ? this section for cs 1.6 not css.
JusTGo is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 06-04-2015 , 09:29   Re: Litle small problem
Reply With Quote #5

I had this problem a while back
https://forums.alliedmods.net/showthread.php?t=255181
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
aron9forever is offline
Kriax
Senior Member
Join Date: Apr 2012
Old 06-04-2015 , 11:18   Re: Litle small problem
Reply With Quote #6

Oh, I did a search on amx and I posted in the same section, excuse me ...
Someone could move my topic please ? ^^ "
Kriax is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode