abs() -> std::abs()
This commit is contained in:
parent
b942e96e56
commit
51923888a3
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ void ParameterVirtualWidget::setPrecision(double number){
|
|||
decimalPrecision = 0;
|
||||
long double diff, rn; //rn stands for real number
|
||||
unsigned long long intNumber, multi = 1;
|
||||
number = abs(number);
|
||||
number = std::abs(number);
|
||||
while(1) {
|
||||
rn = (number * multi);
|
||||
intNumber = rn; //the fractional part will be truncated here
|
||||
|
|
|
|||
Loading…
Reference in a new issue