rochus
5th August 2002, 13:04
hi everybody,
does anyone know where I can find the definition of the function
halfadj(val1,val2) which seems to round val1 ?
thanks a lot

shah_bs
8th August 2002, 02:51
I have searched in various places (including the library above) but fail to find this function. So, if you can please tell where exactly (which program script) you found it in?

klesch
8th August 2002, 10:31
I also failed to find any documentation regarding this function.

I you will find any, please, post it here as well.

Thanx!

NPRao
8th August 2002, 10:53
Hi Rochus,

I couldnt find the documention, but I could find where that function call is being used...

it might be present in one of those dlls or maybe in an include.

I will post more when I find more details.

Juergen
8th August 2002, 11:41
I don`t think that you can find anything in dlls or includes about that function. Maybe I`m wrong, but it seems that this is a standard function within the Baan bshell.

I use this function sometimes when i deal with prices and rounding codes, because i have seen this feature in some program scripts.

Regards,
Juergen

rochus
10th August 2002, 11:38
found in tfglddll4011 (baan 4c4)

if halfadj(total.amount,2) <> 0.0 then
return(false)
endif

i wrote a small programm and i've tested it with debugger.
result:
the function is rounding the value.
the it is the same like round.