format the network weight value as integer