How to truncate variables in BoostC C Compiler ?

Status
Not open for further replies.

Sling

New Member
Hi how would I be able to truncate a variable in BoostC? I need to make sure a value passed to a PIC16f877a through an ADC input is no larger than 2 digits (so if it's say 3.1223 then it needs to become 3.1).
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…