This will allow you to keep the field as a number and not have to convert to text. This solution is a formatting change at the decimal point.
•Right-click the "Details" field you want to apply this formatting to
•Click "Format field"
•Click the "Number" tab
•Click "Customize..."
Start with the largest decimal place that you want to keep and then duplicate the line backwards. For example if you know the maximum decimal position that has a value you want to keep start with that number, i.e. 1.2345600 you would start with 5. If the number is 0 you must account for this first as otherwise you will get an error
The "Field Name" is the database field name that you are wanting to change the formatting for.
If {"Field Name"} = 0 then 2 else
if((({"Field Name"})/(truncate({"Field Name},4)))>1) then 5 else
if((({"Field Name"})/(truncate({"Field Name},3)))>1) then 4 else
if((({"Field Name"})/(truncate({"Field Name},2)))>1) then 3 else
2