Decimal precision

When I press F5 to run a script, the decimal precision is rounded or truncated. When I press F9 to run a statement I get the full decimal precision, which is what i want. How do I get the full decimal precision in a script? (F5).

thanks.