30.06.2017, 09:05
Hello
Can someone help me with script to extract 3 decimal values from a Byte.
I want the hundred value to be represented as own value ranging from 0-2
I want the ten-value to be represented as own value ranging from 0-9
I want the 1-value to be represented as own value ranging from 0-9
EG: Byte 253 is divided into
V1=2 + V2=5 + V3=3
Byte 027 is divided into
V1=0 + V2=2 + V3=7
Would this be possible?
Can someone help me with script to extract 3 decimal values from a Byte.
I want the hundred value to be represented as own value ranging from 0-2
I want the ten-value to be represented as own value ranging from 0-9
I want the 1-value to be represented as own value ranging from 0-9
EG: Byte 253 is divided into
V1=2 + V2=5 + V3=3
Byte 027 is divided into
V1=0 + V2=2 + V3=7
Would this be possible?