Jump to content



Photo

MathsEx UDF

MathsEx Maths UDF Fraction

  • Please log in to reply
4 replies to this topic

#1 PhoenixXL

PhoenixXL

    be what you are, its always the BEST...

  • Active Members
  • PipPipPipPipPipPip
  • 1,337 posts

Posted 22 May 2012 - 05:04 PM

I use Fractions Always In My Script
But I never Found a UDF for That
I made a UDF for Using
So here I want to Share it
I Named it MathsEx UDF but I Guess Fraction UDF would be Better ;)

It Requires Three Funtions Of Array.au3

Currently Supported Functions
AutoIt         
; #INDEX# ======================================================================================================================= ; Title .........: MathsEx ; AutoIt Version : 3.2.10++ ; Language ......: English ; Description ...: Functions for Carrying Out More Advanced Mathematical Calculations. ; Author(s) .....: Phoenix XL ; Included.......: Three Functions of Array.au3 i.e. _ArraySort and _ArrayReverse and __ArrayQuickSort1D Requires Array.au3 ; =============================================================================================================================== ; 0xDead=57005...............I just Like The Number :) ; #CURRENT# ===================================================================================================================== ; _Find_GCF ; _Find_LCM ; _Subtract_Fraction ; _Add_Fraction ; _Multiply_Fraction ; _Divide_Fraction ; _Reciprocal ; _Compare_Fraction ; _Quotient ; _Simplify ; _IntegerisNegative ; _IntegerisPositive ; _Get_Denominator ; _Get_Numerator ; _To_Fraction ; _To_Mixed_Fraction ; _Is_Fraction_Improper ; _Is_Fraction_Proper ; _Is_Fraction ; =============================================================================================================================== ; #INTERNAL_USE_ONLY# =========================================================================================================== ; _CheckArray ; _Greatest_Common_Factor ; _Operate_Fraction ; _Set_Sequence ; ===============================================================================================================================


I havent Included Any Examples Yet
The Documentation is Enough and Is Very Easy To Implement the Funtions
Though If any Bug or Problem With The UDF Please Share It

The UDF is Attached in the Post
V1.1 = Fixed A Bug

Regards
Phoenix XL

Attached Files


Edited by PhoenixXL, 29 June 2012 - 05:21 PM.

  • JScript likes this
PredictText: Predict Text of an Edit Control Like Scite. | Remote Gmail: Execute your Scripts through Gmail. | StringRegExp: Share and learn RegExp. | Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). | Database: An easier approach for _SQ_LITE beginners. | MathsEx: A UDF for Fractions and LCM, GCF/HCF. | FloatingText: An UDF for make your text floating. | Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead.







#2 JScript

JScript

    Goodbye everybody, I got tired of this system adopted here!

  • Active Members
  • PipPipPipPipPipPip
  • 1,062 posts

Posted 22 May 2012 - 11:08 PM

This can be very useful, thanks 4 sharing! ;)

Regards,

João Carlos.
http://notebook.forumais.com (Forum Maintenance Notebooks and Desktop)http://autoitbrasil.com/ (AutoIt v3 Brazil!!!)
Spoiler

Posted Image Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!       


#3 PhoenixXL

PhoenixXL

    be what you are, its always the BEST...

  • Active Members
  • PipPipPipPipPipPip
  • 1,337 posts

Posted 23 May 2012 - 05:12 AM

THnx JScript ;)
PredictText: Predict Text of an Edit Control Like Scite. | Remote Gmail: Execute your Scripts through Gmail. | StringRegExp: Share and learn RegExp. | Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). | Database: An easier approach for _SQ_LITE beginners. | MathsEx: A UDF for Fractions and LCM, GCF/HCF. | FloatingText: An UDF for make your text floating. | Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead.

#4 netegg

netegg

    Prodigy

  • Active Members
  • PipPipPip
  • 156 posts

Posted 05 June 2012 - 04:06 AM

_Quotient(64,7) return 0?

#5 PhoenixXL

PhoenixXL

    be what you are, its always the BEST...

  • Active Members
  • PipPipPipPipPipPip
  • 1,337 posts

Posted 05 June 2012 - 07:14 AM

Cleared the Bug Download the Modified_MathsEx V1.1 UDF

Now Returns the Correct Value
#include <MathsEx.au3> ConsoleWrite(_Quotient(64,7)&@CRLF)

Edited by PhoenixXL, 05 June 2012 - 07:19 AM.

PredictText: Predict Text of an Edit Control Like Scite. | Remote Gmail: Execute your Scripts through Gmail. | StringRegExp: Share and learn RegExp. | Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). | Database: An easier approach for _SQ_LITE beginners. | MathsEx: A UDF for Fractions and LCM, GCF/HCF. | FloatingText: An UDF for make your text floating. | Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead.





Also tagged with one or more of these keywords: MathsEx, Maths, UDF, Fraction

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users