Hi folks,
I would like to build some files that allow to put baseball statistics in to a db and to display them on php.
My question is now, is it possible to calculate some numbers as thirds?
For those who are familiar with baseball the innings a pitcher has pitched are counted as i.e. 5 innings, 5 1/3 or 5 2/3 innings. and are displayed as 5, 5.1 or 5.2.
So how would I manage to write 5.1 when I'm putting the data into the db via a php-script and then to enable the db to calculate this as thirds (that 1.1 + 2.2 don't equal 3.3 but 4). And if iI want to pull this data outof the db to be displayed in the mentioned style (5.2 or 6)