result where
        result = 2 fby "point" fby decimalise(1);
        x = first n;
        decimalise(expansion)= carry fby decimalise(newexp)
              where
                posint=1 fby posint +1;
                base= posint*x;
                carry= if(expansion*10+9)mod base >= 9 then
                        expansion*10 div base
                        else (expansion*10+next carry) div base fi;
                newexp = (expansion*10 + next carry) mod base;
              end;
      end
