changed scale_code function so it can scale the number by an arbitrary amount. Change F to be scaled by 10