sc-im example file to example.rec

This commit is contained in:
2026-04-20 05:43:26 +02:00
parent 24efbfeb3b
commit 4ced7c9fa0
2 changed files with 50 additions and 45 deletions

View File

@@ -1,45 +0,0 @@
# This data file was generated by the Spreadsheet Calculator Improvised (sc-im)
# You almost certainly shouldn't edit it.
newsheet "Food"
movetosheet "Food"
offscr_sc_cols 0
offscr_sc_rows 0
nb_frozen_rows 1
nb_frozen_cols 0
nb_frozen_screenrows 2
nb_frozen_screencols 0
format A 24 1 0
format B 13 2 0
format 0 2
format 4 2
format 10 2
freeze 0
label A0 = "Food by Weight"
leftstring B0 = "No. Meals"
leftstring A1 = "Ajvar"
let A1 = 5
let B1 = A1*$A$10
leftstring A2 = "Apples"
let A2 = 3
let B2 = A2*$A$10
leftstring A3 = "Rocket"
let A3 = 0.2
let B3 = A3*$A$10
leftstring A4 = "Beli Cheese"
let A4 = 1
let B4 = A4*$A$10
leftstring A6 = "Total"
let A6 = @sum(A1:A4)
leftstring B6 = "Total"
let B6 = @sum(B1:B4)
leftstring A7 = "Average"
let A7 = @avg(A1:A4)
leftstring A10 = "Weight of Meal"
let A10 = 0.3
pad 4 A0:A4
pad 2 B0:B4
pad 4 A6:A8
pad 2 B6
pad 4 A10
goto A10

50
example.rec Normal file
View File

@@ -0,0 +1,50 @@
%rec: example
filename: food.sc
bin: sc-im
note: Basic sc-im example of adding and averaging
content: # This data file was generated by the Spreadsheet Calculator Improvised (sc-im)
+ # You almost certainly shouldn't edit it.
+
+ newsheet "Food"
+ movetosheet "Food"
+ offscr_sc_cols 0
+ offscr_sc_rows 0
+ nb_frozen_rows 1
+ nb_frozen_cols 0
+ nb_frozen_screenrows 2
+ nb_frozen_screencols 0
+ format A 24 1 0
+ format B 13 2 0
+ format 0 2
+ format 4 2
+ format 10 2
+ freeze 0
+ label A0 = "Food by Weight"
+ leftstring B0 = "No. Meals"
+ leftstring A1 = "Ajvar"
+ let A1 = 5
+ let B1 = A1*$A$10
+ leftstring A2 = "Apples"
+ let A2 = 3
+ let B2 = A2*$A$10
+ leftstring A3 = "Rocket"
+ let A3 = 0.2
+ let B3 = A3*$A$10
+ leftstring A4 = "Beli Cheese"
+ let A4 = 1
+ let B4 = A4*$A$10
+ leftstring A6 = "Total"
+ let A6 = @sum(A1:A4)
+ leftstring B6 = "Total"
+ let B6 = @sum(B1:B4)
+ leftstring A7 = "Average"
+ let A7 = @avg(A1:A4)
+ leftstring A10 = "Weight of Meal"
+ let A10 = 0.3
+ pad 4 A0:A4
+ pad 2 B0:B4
+ pad 4 A6:A8
+ pad 2 B6
+ pad 4 A10
+ goto A10