Data update

This commit is contained in:
Ingy döt Net 2025-06-11 20:16:52 -04:00
parent 72eb4943cb
commit 4d5544505c
2347 changed files with 62432 additions and 16731 deletions

View file

@ -0,0 +1,5 @@
"-123".succ # => "-124"
require "big"
"-123".to_big_i.succ.to_s # => "-122"

View file

@ -0,0 +1,10 @@
# n is string
set n "1234"
# integer rep added to n
# o is calculated integer
set o [expr $n + 1]
# n is string,
# o used as string adds string representation to o
puts stdout "$n incrememented is $o"

View file

@ -0,0 +1,6 @@
# n has integer representation incremented
# n string rep updates when value changes
incr n 5
# n string rep used
puts stdout "n is now $n"

View file

@ -0,0 +1,5 @@
# string
set j "4.3e11"
# prints j as string
puts stdout "j: $j"

View file

@ -0,0 +1,4 @@
# double fp temp calculated
# converts to string
# j not updated
puts stdout "j: [expr $j]"

View file

@ -0,0 +1,2 @@
# j is still string "4.2e11"
puts stdout "j: $j"

View file

@ -0,0 +1 @@
puts stdout "$j * $n = [expr $j * $n]"

View file

@ -1,2 +0,0 @@
set str 1234
incr str