|
Re: PrintToScreen() function prints out hex values?
Quote:
Originally Posted by Nathan
When I use the PrintToScreen function provided in the WPI library it prints out hexadecimal values, is there any way to make it print in decimal?
This is the code I'm using:
Code:
PrintToScreen ( "%ld\n" , temp ) ;
"temp" is a long.
I thought that "%ld" was the correct value to put in for a long? What am I doing wrong?
Thanks,
Nathan
|
Nathan -
I'm at home now and don't have a controller here to test this. But if you use printf instead of PrintToScreen, I'm pretty sure that will work as advertised. I'll try to test it tomorrow sometime when I get to the office to see what's up.
Thanks,
Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
|