Working r/w and r/o variables of number (double) type