mirror of
https://github.com/DanilaFe/abacus
synced 2024-12-04 15:32:59 -08:00
Remove precision specification as it seems detrimental.
This commit is contained in:
parent
1160768ee5
commit
9454620489
|
@ -6,10 +6,6 @@ package org.nwapw.abacus.config;
|
|||
*/
|
||||
public class Configuration {
|
||||
|
||||
/**
|
||||
* The precision to which the calculator should operator.
|
||||
*/
|
||||
public int decimalPrecision;
|
||||
/**
|
||||
* The type of number this calculator should use.
|
||||
*/
|
||||
|
|
|
@ -39,19 +39,10 @@ public class ConfigurationObject {
|
|||
*/
|
||||
private Configuration getDefaultConfig(){
|
||||
configuration = new Configuration();
|
||||
configuration.decimalPrecision = -1;
|
||||
configuration.numberType = "naive";
|
||||
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
|
||||
* represent their numbers.
|
||||
|
|
Loading…
Reference in New Issue
Block a user