#include <Arduino.h>
void setup() {
Serial.begin(9600);
// Example character strings
char intString[] = "127";
char negIntString[] = "-127";
char floatString[] = "3.14";
// Convert character strings to numbers
int intValue = atoi(intString);
int negIntValue = atoi(negIntString);
float floatValue = atof(floatString);
// Print the converted values
Serial.print("Integer Value: ");
Serial.println(intValue);
Serial.print("Negative Integer Value: ");
Serial.println(negIntValue);
Serial.print("Float Value: ");
Serial.println(floatValue);
}
void loop() {
// Nothing here for a simple example
}