rcorregidor
3rd April 2006, 13:46
I have a double field in the screen with tcqaes ambit, it is double with 5 digits before the decimal sign and 8 digits after.
I run the session and input data in this field, for example 5,55555555 and automatically changes 5,55555600.
The characteristics in the ambit are allright and I don´t modify the data in the program.
Somebody knows where is the mistake?
Thank you.
Excuse me for my terrible English.
bilmaa
3rd April 2006, 16:14
I think that baan use only 6 decimal positions when display and the round you can deactivate if before display you convert to string and display the string variable.
kind regards.
bdittmar
3rd April 2006, 17:34
I have a double field in the screen with tcqaes ambit, it is double with 5 digits before the decimal sign and 8 digits after.
I run the session and input data in this field, for example 5,55555555 and automatically changes 5,55555600.
The characteristics in the ambit are allright and I don´t modify the data in the program.
Somebody knows where is the mistake?
Thank you.
Excuse me for my terrible English.
Hello,
BaanERP Programmers Guide
round()
--------------------------------------------------------------------------------
Syntax
double round( double value, long diga, long mode )
Description
This rounds a given value to a specified number of decimal places.
Arguments
value
The value to be rounded.
diga
The number of decimal places to which value is to be rounded.
mode
0 truncate (for example, both 1.5 and 1.49 are rounded down to 1)
1 normal round (for example, 1.5 is rounded up to 2; 1.49 is rounded
down to 1)
2 round up (for example, both 1.5 and 1.49 are rounded up to 2)
Return values
The rounded value. Or the original value (value) if an error occurs.
Because the return value is of type double, the number of digits after the decimal sign is always 6. For example, round(1.345, 2, 1) returns 1.350000.
Regards
suhas-mahajan
4th April 2006, 07:50
Hi rcorregidor
Please refer to -
http://www.baanboard.com/baanboard/showthread.php?t=13177&highlight=group
regards,
-Suhas
rcorregidor
4th April 2006, 12:27
Thanks everybody, I see what is the problem.