Hi,
how can I round a value in a user-defined function
Rainer
rounding in a user-defined function
Re: rounding in a user-defined function
In a spreadsheet?
=ROUND(myFunction(args);2)
=ROUND(myFunction(args);2)
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: rounding in a user-defined function
Hi Villeory,
I know how to round in a spreadsheet itself, but how do I in a user-defined function?
e.g.
Function Test as Single
Dim value as Single
value = 2 / 3
Test = ROUND(value,1)
End Function
The examples doesn't work?
Rainer
I know how to round in a spreadsheet itself, but how do I in a user-defined function?
e.g.
Function Test as Single
Dim value as Single
value = 2 / 3
Test = ROUND(value,1)
End Function
The examples doesn't work?
Rainer
Re: rounding in a user-defined function
Do yourself a favour and let it happen on the sheet if possible. Search this forum as well as oooforum.org for keywords "FunctionAccess" and "callFunction". Service "FunctionAccess" includes a lot of pitfalls if you are not familiar with this beast of an API.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice