>Hi all,
>
>I have a report that sum the lines in a report variable like that,
>
>n_tot = prUnit the value for n_tot=1.80
>if i need this variable for another calculation like n_tot_ger=n_tot,
>n_tot_ger=1.79.
>
>Joao Batista
This looks as if VFP is rounding (up) in once case, truncating in another.
Check the exact value of the variable, because it probably has more than 2 decimals. You can
SET DECIMALS TO 10, for instance, or
? n_tot * 1000. Then, try to find out which commands you use to round up vs. down.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)