They are equivalent, and will infer the same logic. The only thing is some synthesizers will issue a warning for the last method to the effect of "truncating number", as they treat dimensionless numbers as 32 bit values, and so it will need to chop off higher bits.