Skip to content
Snippets Groups Projects
Commit df41ea13 authored by mathias.chouet's avatar mathias.chouet
Browse files

App preferences: display precision => displayed decimals

parent 25e6c8fd
No related branches found
No related tags found
No related merge requests found
{
"params": {
"displayPrecision": 0.001,
"displayPrecision": 3,
"computePrecision": 0.0001,
"newtonMaxIterations": 50,
"enableNotifications": true,
......
......@@ -16,7 +16,7 @@ export class ApplicationSetupService extends Observable {
private _fallbackLanguage = "fr";
// default builtin values
public displayPrecision = 0.001;
public displayPrecision = 3;
public computePrecision = 0.0001;
public newtonMaxIterations = 50;
public enableNotifications = true;
......@@ -71,7 +71,7 @@ export class ApplicationSetupService extends Observable {
}
public get displayDigits() {
return -Math.log10(this.displayPrecision);
return this.displayPrecision;
}
public get fallbackLanguage() {
......
......@@ -378,7 +378,7 @@
"INFO_SETUP_ENABLE_NOTIFICATIONS": "Enable on-screen notifications",
"INFO_SETUP_LANGUAGE": "Language",
"INFO_SETUP_NEWTON_MAX_ITER": "Newton iteration limit",
"INFO_SETUP_PRECISION_AFFICHAGE": "Display accuracy",
"INFO_SETUP_PRECISION_AFFICHAGE": "Number of displayed decimals",
"INFO_SETUP_PRECISION_CALCUL": "Computation accuracy",
"INFO_SETUP_RESTORE_DEFAULT_VALUES": "Restore default values",
"INFO_SETUP_STORE_PREFERENCES": "Save preferences",
......
......@@ -377,7 +377,7 @@
"INFO_SETUP_ENABLE_NOTIFICATIONS": "Activer les notifications à l'écran",
"INFO_SETUP_LANGUAGE": "Langue",
"INFO_SETUP_NEWTON_MAX_ITER": "Newton : nombre d'itérations maximum",
"INFO_SETUP_PRECISION_AFFICHAGE": "Précision d'affichage",
"INFO_SETUP_PRECISION_AFFICHAGE": "Nombre de décimales affichées",
"INFO_SETUP_PRECISION_CALCUL": "Précision de calcul",
"INFO_SETUP_RESTORE_DEFAULT_VALUES": "Restaurer les valeurs par défaut",
"INFO_SETUP_STORE_PREFERENCES": "Enregistrer les préférences",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment