Using integer math
1023 / 213 = 4 remainder 171
remainder 171*100 / 213 = 80
So, adcVal1 = adcVal / 213
adcVal2 = ((adcVal // 213)*100)/213
Then print the value
This is the quick and easy way. Others might suggest more optimal techniques using PBP
Bookmarks