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:

image

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


image
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.


image
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.


image
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.


image
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.


image
IndirectFormatting
Event Raised When You use Indirect Methods.

The Return Value of the Method.


image
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 - 2021-01-07T18:30:00Z

6 Likes

आप वह भी आजमा सकते हैं जो नहीं है। Nice!

1 Like

SharedScreenshot


एक ही काम की दो चीजें क्यों होती हैं?

1 Like

@KUMARASWAMY_B.G OnError block is for Convert Value block.
& Error block is for

1 Like

Nice Extension @Muhammad_Mansuri :grin:

3 Likes

@KUMARASWAMY_B.G I hope you Understand & Thanks :rose:@Salman_Dev.

1 Like

aix download link does not exist....

1 Like

Yes, the link is https://community.appinventor.mit.edu/404

2 Likes

@TIMAI2 & @KUMARASWAMY_B.G I Updated the Link. Check now & Thanks for Letting me Know.

Thanks @Muhammad_Mansuri. I've been looking for an extension like this for a while... and you made it.

1 Like

That link says it doesn't exist or is private. What happened?

1 Like

@netminderno.9apps Link was Updated. Check My First Post.

Thanks.

Extension Link.
https://community.appinventor.mit.edu/uploads/short-url/8qWf6l5XjhjQOiw17WLVnRpParR.aix

1 Like