Trouble using PRBMath library for ln functions

I'm trying to use the PRBMath library in a smart contract I'm writing so I can have access to logarithmic functions. I tried importing it into the contract with using

PRBMath for PRBMath.UD60x18

My test function is

function testingStuff() public pure returns (uint256) {
return PRBMathUD60x18.ln(10);
}

Everytime I try to test deploy the contract and run that function I get

{
"code": 3,
"message": "execution reverted",
"data": "0xd88504dc000000000000000000000000000000000000000000000000000000000000000a"
}

as an error. Any Idea on what I'm doing wrong?

The 18 in "60x18" means 18 decimals. "10" represents a number <1 which has negative logarithm that can't be represented.

1 Like

Okay, I understand. Thank you for the help.