That system has been around a long while. Can't say I know who or where it started, but it sure helps to have an agreed-upon notation when selling & buying animals, so this is how it's done.
First males, then females, then un-sexed (gender unknown)
Examples: yes, 2 males & 5 females is 2.5, and 11 females is written 0.11 If none are unsexed, you can either write "0" or omit that.