O have a value of coin base system and the user may have 73020 coins now the data base reads out the 73020 coins no problem but the php is not reading the last 0 because its a null or empty or something and its just not liking the 0 at the end of the string so lets say $mycoins = $row['mycoins']; and this echos out 73020 what this 73020 is really saying is this once its all converted out correctly $73.02%0 So what I thought I needed to do was count the string first to get all the numbers and place if count == 5 I could do the row statement for the ten dollar section or if count == 6 i could so that row for the hundreds and so on. but i can not solve the 0 issue so lets write a simple code