Home › Forums › Microcontrollers › PIC Microcontroller › MikroC OneWire Example Help This topic has 1 reply, 2 voices, and was last updated 7 years, 11 months ago by Ligo George. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts March 30, 2015 at 10:55 am #11133 luismk89Participant I would like to know why are they adding 48. // Convert temp_fraction to characters text[4] = temp_fraction/1000 + 48; // Extract thousands digit text[5] = (temp_fraction/100)%10 + 48; // Extract hundreds digit text[6] = (temp_fraction/10)%10 + 48; // Extract tens digit text[7] = temp_fraction%10 + 48; // Extract ones digit Thanks for your help 🙂 March 30, 2015 at 11:04 am #11134 Ligo GeorgeKeymaster It is to convert each extracted digit to corresponding character. ‘0’ => 0 + 48 ‘1’ => 1 + 48 ‘2’ => 2 + 48 etc. Please refer ASCII Table for more reference. Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In