ROBOTC.net forums http://robotc.net/forums/ 

Multiplication http://robotc.net/forums/viewtopic.php?f=1&t=7868 
Page 1 of 1 
Author:  AMW [ Tue Feb 04, 2014 1:13 pm ] 
Post subject:  Multiplication 
Hi, I am attempting to perform the simple math function seen below, and I am just wondering how to write this correctly to avoid these errors. (**Error**:Undefined variable 'ab'. 'short' assumed. **Error**:Unexpected token ')' **Error**:Missing ';' before ')' **Error**:Unexpected ')' during parsing) I have the variables a and b set as integers. 1/2ab 
Author:  NeXTGeneration [ Tue Feb 04, 2014 1:22 pm ]  
Post subject:  Re: Multiplication  
This function has to be done like so:
RobotC does not support such algebraic function layouts. They must usually be fully written out like the above. 
Author:  AMW [ Tue Feb 04, 2014 1:37 pm ] 
Post subject:  Re: Multiplication 
Thank you so much! 
Page 1 of 1  All times are UTC  5 hours [ DST ] 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ 