Number with Comma (9,999)

 Number with Comma (9,999)


It's very easy if you're using Sketchware Pro.

Follow this:
Just go to Blocks then Operator and then scroll down and choose toDecimalFormat and then type this ###,### inside the box of toDecimalFormat while the circle is the number value

If you're not using Sketchware Pro.

Follow this:
Go to Activity and put this code
textview1.setText(new DecimalFormat("###,###").format(25));

###,### - To make the number format like 999,999,999,999
25 - Is the value

Comments

Post a Comment

Popular posts from this blog

Get Percent of the Number (98%)

Get X, Y Position of Layout