Raised This Month: $ Target: $400
 0% 

Decimal variables?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
VarmVaffel
Member
Join Date: Feb 2005
Location: Norway
Old 02-22-2005 , 09:49   Decimal variables?
Reply With Quote #1

I get an error when I try to declare a var this way:

new DecVar[11]={0.1, 0.25, 0.4, 0.55, 0.7, 0.85, 1.0, 1.2, 1.4, 1.6, 2.0}

It has obviously something to do with the decimals, so how do I declare them properly?
VarmVaffel is offline
 


Thread Tools
Display Modes

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 14:00.


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