//logarithm : multiply -2.8763 by 3 clear; clc; close; num=2.8763;//given mantissa=0.8763; mul=mantissa*3; //when mantissa is multiplied, 2 is carried forward. (-2)*3=-6. the characteristic becomes -6+2=-4 val=-4.6289