Menu

#7 Units in INI-files?

open
5
2003-12-02
2003-11-26
Anonymous
No

is it possible to also write the units to an INI-file?

When i write wavelength = 1.23 nm to an INI-file,
the file contains wavelength = 0.000000
and not
wavelength = 1.23 nm
or
wavelength = 1.23E-9 m
(or
wavelength = 1.23E-9)

Discussion

  • Jim Kring

    Jim Kring - 2003-12-02
    • assigned_to: nobody --> jkring
     
  • Jean-Pierre Drolet

    Logged In: YES
    user_id=558016

    In its actual version, the units are stripped from the
    number before being written into ini file. The number
    written is always in base units, e.g. if you display speeds
    in km/h, the number stored on file is in meters/second. That
    number in base units is the only available in data since
    displayed units are control attributes.

    To display base units, one could modify "Format Variant into
    String" to get the units using "Get Physical Units" and
    format this into a string appended to the number.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.