welcome@transmuton.space             TRANSMUTON             Programming Language

About Comments Range Syntax Detacher Merger Swaper Digipulation Comparons Logicons Bitwisons Conditons

Digipulation

"Digit Manipulation" aka "Digipulation".

"Digipulation" is manipulation with the digits of a specific number to form a new number.
It resembles the manipulation of list elements, and behaves somewhat like "Detacher",
but with more possibilities over integer or decimal number.

The part of the number (formed number) created by "Digipulation" is called "Digiton".


"Digipulation" is divided into:

  - Left     Digiton     aka     "LefDigiton"    x|:||

  - Right    ---|---     -|-     "RighDigiton"   x||:|

  - Dual     ---|---     -|-     "BiDigiton"     x|:|:|      x|:|

  - Decimal  ---|---     -|-     "DecimDigiton"  x|:||:|                #>  "DeDigiton"

  - Full     ---|---     -|-     "FullDigiton"   x|:|:|:|    x|:|:      #>  "FuDigiton"


"Digitons" can form a "Decimal Number" with the help of a "Decimal Point" aka "Digipoint"
aka "Digidot" x||:|| or x||:


       Positive "Digidot"  =>  position == RIGHT from the FIRST digit
       Negative "Digidot"  =>  position == LEFT  from the LAST  digit
Double Negative "Digidot"  =>  position == LEFT  from the FIRST digit



   x|:||     x||:|     x|:|:|     x|:|     x|:||:|     x|:|:|:|       "Digitons"


                                           x||:||      x||:           "Digidot"
          

#>  "LefDigitons" and "RighDigitons"

x = 456.789


x|0||   == 4      x|-3||  == 4      x|:||   == 456      #>  "LefDigiton"
x|1||   == 5      x|-2||  == 5      x|:2||  == 45       #>  -----||-----
x|2||   == 6      x|-1||  == 6      x|-2:|| == 56       #>  -----||-----

x|2,0|| == 64     x|1,0|| == 54     x|0,2|| == 46       #>  -----||-----



x||0|   == 7      x||-3|  == 7      x||:|   == 789      #>  "RighDigiton"
x||1|   == 8      x||-2|  == 8      x||:2|  == 78       #>  -----||------
x||2|   == 9      x||-1|  == 9      x||-2:| == 90       #>  -----||------

x||2,0| == 97     x||1,0| == 87     x||0,2| == 79       #>  -----||-----

          

#>  "BiDigitons"

x = 456.789


x|0| == 4      x|-1| == 9            #>  "BiDigiton"
x|1| == 5      x|-2| == 8            #>  -----|-----
x|2| == 6      x|-3| == 7            #>  -----|-----
x|3| == 7      x|-4| == 6            #>  -----|-----
x|4| == 8      x|-5| == 5            #>  -----|-----
x|5| == 9      x|-6| == 4            #>  -----|-----



x|:|:|     ==  x|:|    == 456789     #>  "BiDigiton"
x|1|2|                 == 59         #>  -----|-----

x|1:|:2|   ==  x|1:-1| == 5678       #>  -----|-----
x|-1|0,1|  ==  x|2:5|  == 678        #>  -----|-----

x|2,0|2,0|             == 6497       #>  -----|-----
x|0,2|2,0|             == 4697       #>  -----|-----

          

#>  "DecimDigitons" aka "DeDigitons"

x = 456.789


x|:||:|     == 456.789      #>  "DeDigiton"

x|:2||:2|   == 45.78        #>  -----|-----
x|1:||1:|   == 56.89        #>  -----|-----

x|2,0||2,0| == 64.97        #>  -----|-----
x|0,2||2,0| == 46.97        #>  -----|-----

          

#>  "Digidot"

x = 456.789

x||:|| == 2      #>  return position of "Digidot"
x||:   == 2      #>  ------------||--------------


x||0||    ==  4.56789      ==     x||-5||  ==  4.56789      #>  "Digidot"
x||1||    ==  45.6789      ==     x||-4||  ==  45.6789      #>  ----|----
x||2||    ==  456.789      ==     x||-3||  ==  456.789      #>  ----|----
x||3||    ==  4567.89      ==     x||-2||  ==  4567.89      #>  ----|----
x||4||    ==  45678.9      ==     x||-1||  ==  45678.9      #>  ----|----


x||--1||  ==  0.456789            #>  --1  ==  0.??????     #>  ----|----
x||--2||  ==  0.0456789           #>  --2  ==  0.0?????     #>  ----|----
x||--3||  ==  0.00456789          #>  --3  ==  0.00????     #>  ----|----

          

#>  "FullDigitons" aka "FuDigitons"

x = 456.789

x|:|:|:|      ==  x|:|:  ==  456.789

x||:||        ==  2            #>  "Digidot" is 2
x||:          ==  2            #>  ------||------


x|:2|:|:2|    ==  457.8        #>  45 2 78  =>  457.8       #>  "FuDigiton"
x|1:|:|1:|    ==  568.9        #>  56 2 89  =>  568.9       #>  -----|-----


x|:2|0|:2|    ==  4.578        #>  45 0 78  =>  4.578       #>  -----|-----
x|:2|1|:2|    ==  45.78        #>  45 1 78  =>  45.78       #>  -----|-----
x|:2|2|:2|    ==  45.78        #>  45 2 78  =>  457.8       #>  -----|-----

x|:2|:2|0     ==  4.578        #>  45 78 0  =>  4.578       #>  -----|-----
x|:2|:2|1     ==  45.78        #>  45 78 1  =>  45.78       #>  -----|-----
x|:2|:2|2     ==  45.78        #>  45 78 2  =>  457.8       #>  -----|-----


x|0,2|0|1,0|  ==  4.687        #>  46 0 87  =>  4.687       #>  -----|-----
x|0,2|1,0|0   ==  4.687        #>  46 87 0  =>  4.687       #>  -----|-----