mirror of
https://github.com/DanilaFe/abacus
synced 2024-11-17 16:09:32 -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 {
|
||||
|
||||
/**
|
||||
* 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