I am just trying to learn about round() and log().
Compiler doesn't like the log line.
What would be correct?
Also if I changed this function to a Sub, how do I call it?
Compiler doesn't like the log line.
What would be correct?
Code:
Function funcNam(funcArg As Double) As String
Dim logArg As Double
Dim rndLogArg As Double
logArg = Log10{funcArg)
rndLogArg = Round(logArg, 0)
Sheets("WrkShtNam").Cells(7, 9).Value = funcArg 'for debug
Sheets("WrkShtNam").Cells(8, 9).Value = logArg 'for debug
Sheets("WrkShtNam").Cells(9, 9).Value = rndLogArg 'for debug
funcNam = rndLogArg
End Function