View Single Post
  #1   Spotlight this post!  
Unread 14-01-2008, 11:36
Nathan's Avatar
Nathan Nathan is offline
Registered User
FRC #1501 (Team T.H.R.U.S.T.)
Team Role: Alumni
 
Join Date: Sep 2006
Rookie Year: 2007
Location: United States
Posts: 149
Nathan has a spectacular aura aboutNathan has a spectacular aura aboutNathan has a spectacular aura about
PrintToScreen() function prints out hex values?

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
__________________
Save money with PriceWombat, a shopping comparison and price tracking tool (that I made!).

Check out my hobby electronics business!

My former robotics team: Huntington County 4-H Robotics