Hi,
PBP works with integers only.
1/127=0.0079 which will be truncated to 0, 0*100=0
126/127=0.99 which will be truncated to 0, 0*100=0
127/127=1, 1*100=100
Multiply it by 100 first - then divide it by 127.
126*100=12600, 12600/127=99
Obviously it's not perfect because (1*100)/127 will still return 0
/Henrik.
Bookmarks