Raised This Month: $ Target: $400
 0% 

Float problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-07-2011 , 07:06   Re: Float problem
Reply With Quote #2

Your stock needs a float tag and its case sensitive, so it MUST be "Float".

EDIT: this seems to work, returns 4.168393
Code:
Float:get_float_ab()
{
    return (a + 0.0) / (b + 0.0)
}
EDIT #2: It works (a / b = 4.168393) even without Float: tag but it gives out a tag mismatch on compile.
__________________

Last edited by Hunter-Digital; 05-07-2011 at 07:17.
Hunter-Digital is offline
 



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 04:17.


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