I have a function to convert string to number
Have you tried to added output="false" to your function tag?
output="false"
...
Hope that helps.