Although this is a little esoteric, the final minus is a valid number format, which is sometimes used in accounting packages. Probably now it is not used so much. It indicates a negative number, for example. 555- - -555. Your second example works, because -555 (or 555-) can be divided by 2, i.e. -227.5 (or 227.5 -).
Excel, :

, :
#,##0;#,##0-
blog-post.