Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

New Articles From Microcontroller Tips

Back
Top