MathUtils Extension (My First Extension)

Today I Present My First Extension ‘MathUtils’ Extension.


Introduction:

MathUtils Extension will allow you to quickly perform such functions as:

  • Simple Mathematics (Addition, Subtraction, Multiplication etc…)

  • You Can Convert Numbers to its Short Form like 1000 = 1k, 56000 = 56k.

  • Format a Number to a Default Format.

  • Customize the Formatting of a Number.

  • Put a Separator into Your Number.

& Much More…


Picture of All the blocks.


Documentation:

IMG_20210107_145326

Format
Format a Number to a Default Number.

Number •Numbers to be Formatted in Meters, BytesBytes or Grams.

Format •Format to:
1 = Cm
2 = Km
3 = GB
4 = MB
5 = Kg


IMG_20210107_150335
Custom Format
Customize the Formatting of a Number.

Number •The Number to be Formatted.
Prefix and Sufix •Prefix/Suffix Your Number with anything. Leave an Empty String, If you don’t want to Prefix/Suffix.
multipyFor •Multiply Your Number for Other. If you don’t want to use this, Put 1.


IMG_20210107_151242
Separate
Put a Separator into Your Number.

Number •The Number You want to Add Separator.
Separator •The Separator You want to Use in Your Number.


IMG_20210107_210856
Indirect Methods

These are Methods that will raise the Indirect Formatting Event with the value instead of Returning it. This will beUseful if you want to do something after Formatting.


IMG_20210107_211120
Error
error Message
An Error Occured

1 = You must Choose a Valid Default Format: Direct Method.
2 = You must Choose a Valid Default Format: Indirect Method.


IMG_20210107_214348
IndirectFormatting
Event Raised When You use Indirect Methods.

The Return Value of the Method.


IMG_20210107_214642
Convert
Convert Number to its Short Form.

Value •Which You want Convert in Short Form.


& About Other Blocks, You know How to use it.


Like And Post, How was My Guide.


& If You think this Feature Should be Added, You can PM me or Post here.


I am Trying to Add more Features.


& If You find any bug Let me know.


Thanks For Reading my this Post.


Extension Download Link:
MuhammadMathUtils.aix (10.3 KB)


Extension Built - January 7, 2021

2 Likes

great extension
oh maths maths maths

2 Likes

Thanks :wink::wink: @Ekansh_dev.

1 Like

good work @Muhammad_Mansuri

2 Likes

Thanks, @luv.ak.tech.

2 Likes

Great Start :+1:

2 Likes

Nice Extension and a fantastic start @Muhammad_Mansuri

2 Likes

Thanks, @Kshitij_Vats and @Shameek_Biswas.

2 Likes