Question
REPEAT REGIONS
Is it possible to use relations in a repeat relation to covert decimal #s to fractions?
I was having issues with some ITOS formulas I found online but I developed some if statements that work well. (sample below) They work well at the part level but I am having issues adapting for the repeat region.
| WHOLE=FLOOR(ASM_MBR_FLAT_PATT_L) |
| DECIMAL=ASM_MBR_FLAT_PATT_L-WHOLE |
| IF (DECIMAL<.03125) |
| FRACTION="" |
| ELSE |
| IF DEAD(DECIMAL,0.03125,0.09374)==0 |
| FRACTION="1/16" |
| ELSE |
| IF DEAD(DECIMAL,0.09375,0.15624)==0 |
| FRACTION="1/8" |
| ELSE |
| IF DEAD(DECIMAL,0.15625,0.21874)==0 |
| FRACTION="3/16" |
| ELSE |
| IF DEAD(DECIMAL,0.21875,0.28124)==0 |
| FRACTION="1/4" |
| ELSE |

