A picture would not hurt. I have to assume you are talking about a number on the piston itself and not on the rod otherwise.
If the number is raised like it was cast in and in the piston pin recess area it is a die number designation. The manufacturer has multiple cavities to cast the slugs from which to finish machine the pistons out of so the number adds traceability.