User Tag List

Results 1 to 5 of 5

Thread: Making a scientific calculator: examples?

  1. #1
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    Making a scientific calculator: examples?

    Are there any examples of calculator programs made with MMF? I want to customize one a bit to speed some things up. I'm just wondering what considerations need to be taken into account because, well, there's always sneaky things that come up.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    You want to create a calculator completely from scratch (building your own functions to add, sub, multiply etc.)
    or "simply" using built-in expression editor capabilities with a handy GUI to operate with?

    I'm sure sneaky things would come up even in the second situation,
    but they're always hard to foresee - you'll maybe better just jump in and see what happens

    I remember seeing others asking in the forum for similar jobs but never seen a built example,
    don't know if anyone got to finish those projects.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not sure how much this will help...
    I actually created a "basic" Calculator out of boredom not long ago, should have it lying around. Never finished it as focus shifted to other things.
    It is not complete, and only does multiplications if i remember correctly.

    I divided the process of creating the Calculator into 2 rough parts:
    - Code to accomodate for correct syntax of User input ( User can for example not imput something silly like "3,,3++-4" )
    - Create seperate code for each Operator ( addition, subtraction, multiplication, division ), that #1 scans the Input ( String ) and identifies the first Operator and #2 solves the calculation and replaces the specific part of the String with the result

    Involves alot of FastLooping through a String...

  4. #4
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    Making a scientific calculator: examples?

    Quote Originally Posted by King_Cool View Post
    Involves alot of FastLooping through a String...
    This does help! I'm assuming the inbuilt calculations didn't quite make the cut? Just pasting a proper calculation string into the editor, for example?

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I...
    #1 Identified an Operator ( say division operator )
    #2 Extracted the numbers to the Left and Right of it
    #3 Used the built in Expression Editor to do the calculation on the Extracted numbers

    If this answers you question, im not sure

Similar Threads

  1. need help with scientific format
    By twister in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 26th August 2019, 11:14 PM
  2. Calculator help or example?
    By King_Cool in forum Fusion 2.5
    Replies: 3
    Last Post: 19th October 2015, 06:01 PM
  3. The ''calculator''
    By JappeJJ in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 21st November 2011, 05:01 AM
  4. how to create a calculator in mmf 2 dev?
    By SergioAndre in forum File Archive
    Replies: 17
    Last Post: 10th June 2009, 12:16 AM
  5. Angle Calculator
    By willy in forum Extension Development
    Replies: 2
    Last Post: 13th August 2006, 06:02 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
  •