>> Note that depending on the context / requirements the latter might need to be either: >> >> b := ABS(i MOD 256); >> ABS is not needed as i MOD 256 is always positive. Jörg