Is there a Calc formula to count total decimal and whole digits?

Hi everyone! I wanted to ask, is there a LibreCalc function that counts how many fractional digit are there in a number, and also one that counts the whole digits? I found a .csv file I want to make a database for, and I want to find out the proper max data type length I need.

Thank you for the help.

Version: 24.2.3.2 (x86) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 12; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Why not test with MAX and MIN?

Yeah I tried those. LEN(MAX()) works with whole numbers. With decimals it counts every digit and the . char. Wanted to check if there was a way without it becoming a bus length formula.

Thanks for the help.

=LEN(MyTextualNumber) - FIND(DecimalSeparator; MyTextualNumber)

more details and options from this post :

Thanks. Managed to get something working with that.