More than 3 decimal digits in "Create Number to text (w/ commas)"

Can you create more than 3 decimal digit in the create number to text block?

This block basically helps convert a number value, to a string value in GKC with commas if needed. It’s REALLY useful. The only problem I have with this however, is the fact that it can only go up to 3 digits when the number contains over 3 decimal digits. This was a problem in my Pythagorean Theorem guide. I figured how to make it go up to WAY more decimal digits. The thing is, it just gets so messy. take example for the number: 19238291289.201. It’s really messy. Admit it.
Using the “Create text with” block helps a lot when calculating, but when it gets to a number like the one above, its not as helpful as it was before.

Look at this experiment:
Make a text property named “Number”
Make a trigger that has these blocks:


Make the trigger, trigger a wire pulse block on a text and put these blocks in:

You will find that once triggered, it will only show 3 decimal digits.
However if you change the CNTO(WC) block with the “Create Text with” block with 1 input (Thx to @Fulcrum-19 for discovering this) I will show the full number, without commas. But it looks very messy.

3 Likes

You can probably create more variables past it and decide them by 1/1000, and so on.

1 Like

Explain more please. I’m bumfuzzled

Sorry for my terrible finger handwriting, but here.

1 Like

But the question is: How do we convert it with commas, once the number gets big, its hard to tell what the number is.

oh wooooow there are string blocks
image

Here: I added an experiment in the topic post to help you visualize the problem.

easy and nice @Bardy_2913

?
What?
This is a research topic about the “Create Number to Text (With commas)” Block.
There was not a tutorial going on.

I don’t understand why you can’t use the create text with block…?

1 Like

Because when it gets to a big number like:
293291282929.0129021
It just gets hard to read.
It makes it without commas.

1 Like

I think I found a way…
Do you want pics or no pics?

1 Like

I need pictures please:D

1 Like

Ok, I’ll do pics later. I don’t have time rn :/

1 Like

Oh ok no problem!

I don’t have time for explanations either lol.

Below, and behold; My image.
Hopefully you can understand it with all the external input formatting.
Mini explanation:
This is in a notification device for testing purposes so ignore the last block.
Since you can’t use decimals in properties, I did a little extra (so you can easily change the number being translated). I had 2 properties(2 whole numbers; testNum = 100000000, testNum2 = 314159) which I turned into a decimal number (output is 100000000.314159). Then in the “a” variable, I found the decimal point in a number and added 4 to the letter # of that point, the first decimal place that isn’t included in the “Create Number to Text w/ commas” block. From there, I made another variable “o” that go the number and converted it into a text number with commas. The subtraction in the “o” variable is to make sure there are no decimal numbers past the 3rd decimal place upon conversion so that it doesn’t round the decimals.[1] Finally, in variable “i”, I added 2 variables (the one holding the extra decimals and the one holding the converted number with commas) to create the final number. In this case the final number is 100,000,000.314159. This algorithm works no matter what numbers you input into the 2 properties (or so I’ve tested) :D


Anyways, I did this on a whim so I’ll provide more help after my hour or so walk.


  1. For example, if I converted 3.14159 to text with the “Create number to text w/ commas” block, it would result with 3.142 instead of 3.141 ↩︎

4 Likes

image
Can’t find that block:(((((

I think you should be able to press and hold on the block and more options to appear. I think that one’s called “in line”

image
Wait, I only found these melts into a puddle of shame

Oh wait i’m on mobile
image
It’s called “external inputs”