mirror of
https://github.com/DanilaFe/abacus
synced 2024-12-23 07:50:09 -08:00
Remove precision specification as it seems detrimental.
This commit is contained in:
parent
c66f36c77a
commit
768b9b0e8f
|
@ -6,10 +6,6 @@ package org.nwapw.abacus.config;
|
||||||
*/
|
*/
|
||||||
public class Configuration {
|
public class Configuration {
|
||||||
|
|
||||||
/**
|
|
||||||
* The precision to which the calculator should operator.
|
|
||||||
*/
|
|
||||||
public int decimalPrecision;
|
|
||||||
/**
|
/**
|
||||||
* The type of number this calculator should use.
|
* The type of number this calculator should use.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -39,19 +39,10 @@ public class ConfigurationObject {
|
||||||
*/
|
*/
|
||||||
private Configuration getDefaultConfig(){
|
private Configuration getDefaultConfig(){
|
||||||
configuration = new Configuration();
|
configuration = new Configuration();
|
||||||
configuration.decimalPrecision = -1;
|
|
||||||
configuration.numberType = "naive";
|
configuration.numberType = "naive";
|
||||||
return configuration;
|
return configuration;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the configured, user-requested precision.
|
|
||||||
* @return the precision.
|
|
||||||
*/
|
|
||||||
public int getPrecision(){
|
|
||||||
return configuration.decimalPrecision;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the implementation the user has requested to
|
* Returns the implementation the user has requested to
|
||||||
* represent their numbers.
|
* represent their numbers.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user