S Sling New Member Jan 15, 2011 #1 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: Jan 15, 2011
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).