Decimal to Fraction

fmhiguefmhigue Member Posts: 290
edited 2004-11-10 in Navision Attain
Hi:

Does anyone of you have a function to converter a decimal value to fraction?

Comments

  • jmjm Member Posts: 156
    Hi,

    do you mean the function MOD and DIV?

    try this:
    gDec := 123.456;
    
    MESSAGE('DIV: %1, MOD: %2',gDec DIV 1,gDec MOD 1);
    

    where gDec is a variable of type Decimal.

    br
    Josef Metz
    br
    Josef Metz
  • fmhiguefmhigue Member Posts: 290
    This is what is happening:

    We have a field on the Item card call

    Item Diameter: Decimal
    If we type 5/16 it changes the value to .3125

    We have to add a field on the right that show that amount on fraction amount.

    Let me ttry what you said

    Paco
  • RobertMoRobertMo Member Posts: 484
    Add a new Text field where you will enter your fraction. OnValidate of this field you can calculate the decimal value to use in in further calculcations (if you need it).
               ®obi           
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Sign In or Register to comment.