To wei. please help

I think two days already. Help solve the problem! How can I get the value from 0.01 as shown in the documentation?

that is, there is a number 0.01, but you need to get something like value: ‘0x29a2241af62c0000’

Achieved this result with:

var costBigNumber = ethers.utils.parseEther ('0.01');
        console.log (costBigNumber);

How can I display the _hex value on the page ??