I think I understand the problem but it isn't what I know by precision. If you supply a prevision paramter of X.Y, you want:
You want:
First (X) rightmost digits before the deciaml point
First (Y) leftmost digits after the decimal point
So, supplied with a double of format ABCD.EFGH and a precision of 3.4
you would return BCD.EFGH
ploe wrote:
precision = 1.0
You want:
First (1) rightmost digits before the deciaml point
First (0) leftmost digits after the decimal point
ploe wrote:
precision = 2.3
You want:
First (2) rightmost digits before the deciaml point
First (3) leftmost digits after the decimal point
Is this what you want, or have I misinterpreted this completely?
Kevin