Feature Requests item #677776, was opened at 2003-01-30 16:33
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=432069&aid=677776&group_id=42081

Category: Interface Improvements (example)
Group: Next Release (example)
Status: Open
Resolution: None
Priority: 5
Submitted By: Gregory Krohne (gkrohne)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add custom decimal separator to calculator

Initial Comment:
Add a method for a user to specify the decimal 
separator charactor used in the calculator. Here is how I 
propose that the change should be made:

in <localprefs.js>:
/* Calculator decimal separator character.
*  Value can be almost any character not used for 
computation.
*  Default value is '.' (period), if no value is set
*/
calculatorDecimal = ",";

in <calculate.js>:
 9    if (typeof calculatorDecimal != "undefined" && 
calculatorDecimal != "") {
10      var re = new RegExp("\" + 
calculatorDecimal, "g");
11      expr = expr.replace(re, ".");
12    }
13    with(Math)

24        if (typeof calculatorDecimal != "undefined" 
&& calculatorDecimal != "")
25              answer = answer.toString().replace(/\./g, 
calculatorDecimal);
26        setSearchWindowText(answer, true);


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=432069&aid=677776&group_id=42081


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
DQSD-Devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dqsd-devel

Reply via email to