This is the key question, the datatype of your target variable is important when calling read(). You can double check by printing your variable, if you print without any format “write(,) realnum” and there are no tailing zeros like “2.0000000” but only “2” it means your variable is actually an integer. otherwise you should get your decimal values
1 Like