Jump to content

ScarsX2

Inactive Member
  • Posts

    3
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by ScarsX2

  1. You must first change the data type used in the attributes to support floating point values
    for example: "float"
    If I remember correctly, these values are expressed in "long", without this the effect will be only visual.
    You'll have fun with the code.

    To express a floating point value in python, just use the appropriate representation.
     

    >>> val=14.246
    >>> print(val)
    14.246
    >>> print("%.2f" % val)
    14.25


    About Floating Point Arithmetic (python 2.7) 

    You should handle it without too much trouble.
    GLHF

    • Confused 1
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.