Ignore:
Timestamp:
Feb 20, 2007, 8:34:13 AM (15 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #497: Floating point numbers with leading zeroes in the decimal part are not correctly displayed

Also added an option in the File/Preferences?... dialog to allow a user to specify the number
of decimals to display. This solves the 0.004 issue. Another (better) solution would be to make
it possible to specify a default number of decimals to display for each annotation type. But it
requires a lot more work and should be a tast of it's own.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.2/www/my_base/user/submit_user.jsp

    r2978 r3138  
    126126    cc.setRecent("dateFormats", dateFormat, maxRecent);
    127127    cc.setRecent("dateTimeFormats", dateTimeFormat, maxRecent);
     128
     129    int numDecimals = Values.getInt(request.getParameter("decimals"), 2);
     130    FormatterSettings.setNumDecimals(sc, numDecimals);
    128131   
    129132    sc.setUserClientSetting("plugins.sendmessage", Values.getString(request.getParameter("sendmessage"), "0"));
Note: See TracChangeset for help on using the changeset viewer.