Temp pow tests
Jump to navigation
Jump to search
/* YourDuinoStarter Example: Arguments, types to pow - WHAT IT DOES - SEE the comments after "//" on each line below - CONNECTIONS: - - - V1.00 09/11/12 Questions: terry@yourduino.com */ /*-----( Import needed libraries )-----*/ /*-----( Declare Constants and Pin Numbers )-----*/ /*-----( Declare objects )-----*/ /*-----( Declare Variables )-----*/ float floatResult; int intResult; void setup() /****** SETUP: RUNS ONCE ******/ { Serial.begin(9600); floatResult = pow(8,2); Serial.print(" pow(8,2) floatResult is: "); Serial.println(floatResult,DEC); floatResult = pow(8.00,2.00); Serial.print(" pow(8.00,2.00) floatResult is: "); Serial.println(floatResult,DEC); intResult = pow(8,2); Serial.print(" pow(8,2) intResult is: "); Serial.println(intResult,DEC); intResult = pow(8.00,2.00); Serial.print(" pow(8.00,2.00) intResult is: "); Serial.println(intResult,DEC); }//--(end setup )--- void loop() /****** LOOP: RUNS CONSTANTLY ******/ { }//--(end main loop )--- /*-----( Declare User-written Functions )-----*/ //*********( THE END )***********