in reply to OT: Retrieve float number from mysql db

I don't have any answers to you, but only my curiosity ...

Replies are listed 'Best First'.
Re^2: OT: Retrieve float number from mysql db
by Anonymous Monk on Oct 16, 2015 at 12:50 UTC

    It is a mysql database

    create table mytable (field float);

    insert into mytable (field) value (1679971) ;

    Mysql is not the problem I think, because if I use php I get 1679971 but with perl i get 1679970

    It has to be the way perl represents the float value

Re^2: OT: Retrieve float number from mysql db
by Anonymous Monk on Oct 16, 2015 at 12:03 UTC
    s/to/for/;

      s/Anonymous Monk/Registered User/; allows you to correct and update your posts without cluttering up the place with s/to/for/; nodes.


      Give a man a fish:  <%-{-{-{-<

        Sure. But I don't care to remember the password for here.

        Did somebody mentioned "clutter"?