In order to convert 0.435 to its normalized, regularly rounded representation in the given floating-point number system f=[a=2,k−=−4,k+=4,t=6], we need to follow these steps:
In MATLAB, we can perform these steps using the following code:
main.m1019 chars41 lines
The result in bits
variable should be '001110000110'
, which corresponds to the final representation 0 01110 000110
.
gistlibby LogSnag