Announcement

Collapse
No announcement yet.

percentages

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • percentages

    I know or at least from what I've gathered 4DGL doenst support float numbers. So how would I go about finding percentage of a number.

    i.e. 60% of 240

    normally you would do the typincal math:

    .60 * 240 = X

    X = 144;

    any insight would be greatly appreciated.

  • #2


    (240 * 60) / 100

    As long as any step does not overflow an integer value...
    _______________
    Best Regards,
    Howard

    Comment


    • #3


      thanks my brain isnt working well today

      Comment

      Working...
      X