07 04 numeric types
Many P4 operations are restrained to expressions that evaluate to numeric values. Such expressions must have one of the following numeric types:
int- an arbitrary-precision integer (section Arbitrary-precision integers)bit<W>- aW-bit unsigned integer whereW >= 0(section Unsigned integers (bit-strings))int<W>- aW-bit signed integer whereW >= 1(section Signed Integers)- a serializable
enumwith an underlying type that isbit<W>orint<W>(section Enumeration types).