User Tag List

Results 1 to 5 of 5

Thread: Double precision calculator to other operations

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Ls2's Avatar
    Join Date
    Jun 2011
    Location
    Maceiˇ - Brazil
    Posts
    909
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Double precision calculator to other operations

    Hello,

    I really need help... Is there any way to perform double precision calculations in CFusion? Using the "Double-Precision Calculator" extension I was able to perform basic operations, but I need other operations (cos, sen, acos, etc.).

    Best regards,
    Leo

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Mar 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Ls2 View Post
    Hello,

    I really need help... Is there any way to perform double precision calculations in CFusion? Using the "Double-Precision Calculator" extension I was able to perform basic operations, but I need other operations (cos, sen, acos, etc.).

    Best regards,
    Leo
    Having the same problem. Do you have already got a solution for this problem?
    Best regards
    StefanS

  3. #3
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    12,840
    Mentioned
    83 Post(s)
    Tagged
    2 Thread(s)
    All floating point operations are in double precision in Fusion 2.5.

    The Double Precision Calculator object was made for an old version that was working with simple precision floating point values. In theory it's useless (it may have some use for exporters that don't support double precision, not sure which ones, if any, maybe Android, I would need to ask F.ernando).

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Ls2's Avatar
    Join Date
    Jun 2011
    Location
    Maceiˇ - Brazil
    Posts
    909
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Hi @Yves . Maybe I'm doing something wrong, but consider this simple example:

    Start of Frame
    String Object >> Set alterable string do Str$(1.00000001*0.992121311212)

    I get as result 0.992121. With Double Precision Calculator, I get 0.99212132113321305. With Windows Calculator, 0.99212132113321311212‬.

    Looks a little difference, but results in big errors in some applications.

    Quote Originally Posted by Yves View Post
    All floating point operations are in double precision in Fusion 2.5.

    The Double Precision Calculator object was made for an old version that was working with simple precision floating point values. In theory it's useless (it may have some use for exporters that don't support double precision, not sure which ones, if any, maybe Android, I would need to ask F.ernando).

  5. #5
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    12,840
    Mentioned
    83 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by Ls2 View Post
    Hi @Yves . Maybe I'm doing something wrong, but consider this simple example:

    Start of Frame
    String Object >> Set alterable string do Str$(1.00000001*0.992121311212)

    I get as result 0.992121. With Double Precision Calculator, I get 0.99212132113321305. With Windows Calculator, 0.99212132113321311212‬.

    Looks a little difference, but results in big errors in some applications.
    It's just a display formatting issue, the Str$ function displays a limited number of digits. Use the FloatToString$ function to display more digits, for example:

    FloatToString$(1.00000001 * 0.992121, 16, -1)

    PS: 0.99212132113321305 is what you get when you multiplies those numbers in C++ in double-precision mode, probably the Windows calculator uses a higher precision.

Similar Threads

  1. Replies: 1
    Last Post: 24th October 2015, 07:26 AM
  2. Double precision calculations in iOS?
    By King_Cool in forum iOS Export Module 2.5
    Replies: 3
    Last Post: 23rd October 2015, 07:36 PM
  3. Double precision doesn't work on Android ?
    By Wolkam in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 23rd August 2013, 09:18 PM
  4. Displaying a double precision decimal
    By cimics in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 3rd February 2012, 10:07 PM
  5. Double Precision Object
    By drnebula in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 25th January 2008, 11:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •