Data update
This commit is contained in:
parent
72eb4943cb
commit
4d5544505c
2347 changed files with 62432 additions and 16731 deletions
|
|
@ -0,0 +1,5 @@
|
|||
"-123".succ # => "-124"
|
||||
|
||||
require "big"
|
||||
|
||||
"-123".to_big_i.succ.to_s # => "-122"
|
||||
|
|
@ -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"
|
||||
|
|
@ -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"
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
# string
|
||||
set j "4.3e11"
|
||||
|
||||
# prints j as string
|
||||
puts stdout "j: $j"
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# double fp temp calculated
|
||||
# converts to string
|
||||
# j not updated
|
||||
puts stdout "j: [expr $j]"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
# j is still string "4.2e11"
|
||||
puts stdout "j: $j"
|
||||
|
|
@ -0,0 +1 @@
|
|||
puts stdout "$j * $n = [expr $j * $n]"
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
set str 1234
|
||||
incr str
|
||||
Loading…
Add table
Add a link
Reference in a new issue