can you show your code that you made?
A function like void draw() doesn’t return anything (empty = void).
You want to return a float value as a String. So replace void with String
To make the function return a value, use return command
Here is an example with int.
int add2Numbers(int a1, int a2) {
return a1 + a2;
}
nominator and denominator is from a fraction, upper number and lower number
see https://www.pinterest.de/pin/224335625164717286/visual-search/?x=10&y=10&w=329&h=250&cropSource=6
return a1 + "/" + a2;