To set myarray(0) with 1 & .023 :
set myarray(0) [list 1 .203]
or (if the two numbers are constant):
set myarray(0) {1 .203}
To get 1 from myarray(0):
set value [lindex $myarray(0) 0]
To get .203 from myarray(0):
set value [lindex $myarray(0) 1]
The value assigned to myarray(0) is a list.
The command 'list' creates a list.
The command 'lindex' gets the nth value inside the list.
myarray is not realy an array but an associative array.
If you prefer you can use a structured index:
set myarray(0,0) 1
set myarray(0,1) .203
set value $myarray(0,0) (-> 1)
set value $myarray(0,1) (-> .203)
If you append the values in the index order, you can also use only lists (can be more efficient):
set mylist {}
lappend mylist [list 1 .203]
set value [lindex [lindex $mylist 0] 0] (-> 1)
set value [lindex [lindex $mylist 0] 1] (-> .203)
For more information:
HTH
ulis