Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Custom c++ Scripting question
Custom c++ Scripting question [message #76164] Mon, 05 April 2004 14:28 Go to previous messageGo to previous message
vloktboky is currently offline  vloktboky
Messages: 290
Registered: February 2003
Location: Kentucky, USA
Karma:
Recruit

You mean round a float value?

float x = 3.152;
int y = (int)x;
printf("y = %d\n",y);

Output: y = 3

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: C&C_Ghetto
Next Topic: scripts.dll 1.5.1/1.6
Goto Forum:
  


Current Time: Wed Dec 04 11:27:56 MST 2024

Total time taken to generate the page: 0.00787 seconds