{"text_format":"1","workbook":"xlsx","n_sheets":3,"sheets":["high precision","optimized-1","MOD"],"not_rendered":{"charts":0,"images":0,"macros":0,"external_links":0,"defined_names":0,"comments":2,"pivot_tables":0},"unopened":[],"bounds":{"document_bytes":16777216,"sheet_cells":100000,"rows_first":2000,"rows_last":500,"rows_between":2000,"halvings":0,"cell_chars":16384,"cell_head_chars":4096},"cells_cut":0,"cells_raw":0,"read":"whole","date_system":"1900"}

{"sheet":"high precision","index":0,"n_rows":26,"n_cols":11,"rows_kept":26,"cut":false,"hidden":false,"merged":[[3,10,4,10],[1,1,2,10],[3,1,3,3],[3,5,3,6],[3,8,4,8],[3,9,4,9],[3,7,4,7]]}
[]
[null,"HSL->RGB"]
[]
[null,"nominal values",null,null,null,"hardware values",null,"HEX","coeff. to normalized","control","diff"]
[null,"name","range","value",null,"bits","value"]
[null,"H","-180°..+180°",16,null,"14s",{"$f":"INT(D6/180*2^13)","v":728},{"$f":"DEC2HEX(G6)","v":"2D8"},"180/2^13",{"$f":"G6*180/2^13","v":15.99609375},{"$f":"ABS(D6-J6)","v":3.90625E-3}]
[null,"S","0..255",189,null,8,{"$f":"D7","v":189},{"$f":"DEC2HEX(G7)","v":"BD"},1,{"$f":"G7","v":189},{"$f":"ABS(D7-J7)","v":0}]
[null,"L","0..255",105,null,9,{"$f":"D8*2","v":210},"D2","1/2",{"$f":"G8/2","v":105},0]
[null,"h","0°..360°",{"$f":"MOD((D6+360), 360)","v":16},null,14,{"$f":"MOD((G6+2^14), 2^14)","v":728},"2D8","360/2^14",{"$f":"G9*360/2^14","v":15.99609375},3.90625E-3]
[null,"s","0..1",{"$f":"D7/256","v":0.73828125}]
[null,"l","0..1",{"$f":"D8/256","v":0.41015625}]
[]
[null,"1-|2l-1|","0..1",{"$f":"1-ABS(2*D11-1)","v":0.8203125},null,9,{"$f":"2^9-ABS(2*G8-2^9)","v":420},{"$f":"DEC2HEX(G13)","v":"1A4"},"1/2^9",{"$f":"G13/2^9","v":0.8203125},{"$f":"ABS(D13-J13)","v":0}]
[null,"C","0..1",{"$f":"D13*D10","v":0.605621337890625},null,17,{"$f":"G13*G7","v":79380},"13614","1/2^17",{"$f":"G14/2^17","v":0.605621337890625},0]
[null,"H'","0..5.9(9)",{"$f":"D9/60","v":0.26666666666666666},null,23,{"$f":"G9*273","v":198744},"30858","180/2^27",{"$f":"G15*180/2^27","v":0.26653647422790527},1.3019243876138953E-4]
[null,"H' mod 2","0..2",{"$f":"MOD(D15, 2)","v":0.26666666666666666},null,21,{"$f":"MOD(G15, (2^14*273/3))","v":198744},"30858","180/2^27",{"$f":"G16*180/2^27","v":0.26653647422790527},1.3019243876138953E-4]
[null,"H' mod 2 - 1","-1..+1",{"$f":"MOD(D15, 2)-1","v":-0.73333333333333339},null,"21s",{"$f":"G16-2^13*273/3","v":-546728},"FFFFF7A858","180/2^27",{"$f":"G17*180/2^27","v":-0.73321938514709473},1.1394818623866598E-4]
[null,"1-|H' mod 2 - 1|","0..1",{"$f":"1-ABS(D17)","v":0.26666666666666661},null,21,{"$f":"273/3*2^13-ABS(G17)","v":198744},"30858","180/2^27",{"$f":"G18*180/2^27","v":0.26653647422790527},1.3019243876133402E-4]
[null,"X","0..1",{"$f":"D14*D18","v":0.16149902343749997},null,17,{"$f":"INT(G14*G18*180/2^27)","v":21157},"52A5","1/2^17",{"$f":"G19/2^17","v":0.16141510009765625},8.3923339843722244E-5]
[null,"R1","0..1",{"$f":"IF(D15<1, D14, IF(D15<2, D19, IF(D15<3, 0, IF(D15<4, 0, IF(D15<5, D19, D14)))))","v":0.605621337890625},null,17,{"$f":"IF(G15<745472*1, G14, IF(G15<745472*2, G19, IF(G15<745472*3, 0, IF(G15<745472*4, 0, IF(G15<745472*5, G19, G14)))))","v":79380},"13614","1/2^17",{"$f":"G20/2^17","v":0.605621337890625},0]
[null,"G1","0..1",{"$f":"IF(D15<1, D19, IF(D15<2, D14, IF(D15<3, D14, IF(D15<4, D19, IF(D15<5, 0, 0)))))","v":0.16149902343749997},null,17,{"$f":"IF(G15<745472*1, G19, IF(G15<745472*2, G14, IF(G15<745472*3, G14, IF(G15<745472*4, G19, IF(G15<745472*5, 0, 0)))))","v":21157},"52A5","1/2^17",0.16141510009765625,8.3923339843722244E-5]
[null,"B1","0..1",{"$f":"IF(D15<1, 0, IF(D15<2, 0, IF(D15<3, D19, IF(D15<4, D14, IF(D15<5, D14, D19)))))","v":0},null,17,{"$f":"IF(G15<745472*1, 0, IF(G15<745472*2, 0, IF(G15<745472*3, G19, IF(G15<745472*4, G14, IF(G15<745472*5, G14, G19)))))","v":0},"0","1/2^17",0,0]
[null,"m","0..1",{"$f":"D11-D14/2","v":0.1073455810546875},null,9,{"$f":"INT(G8-G14/2/2^8)","v":54},"36","1/2^9",{"$f":"G23/2^9","v":0.10546875},1.8768310546875E-3]
[null,"R","0..255",{"$f":"INT((D20+$D$23)*256)","v":182},null,8,{"$f":"INT(G20/2^9+$G$23/2)","v":182},"B6",1,{"$f":"G24*1","v":182},0]
[null,"G","0..255",{"$f":"INT((D21+$D$23)*256)","v":68},null,8,{"$f":"INT(G21/2^9+$G$23/2)","v":68},"44",1,{"$f":"G25*1","v":68},0]
[null,"B","0..255",{"$f":"INT((D22+$D$23)*256)","v":27},null,8,27,"1B",1,27,0]

{"sheet":"optimized-1","index":1,"n_rows":26,"n_cols":11,"rows_kept":26,"cut":false,"hidden":false,"merged":[[3,9,4,9],[3,10,4,10],[1,1,2,10],[3,1,3,3],[3,5,3,6],[3,8,4,8],[3,7,4,7]]}
[]
[null,"HSL->RGB"]
[]
[null,"nominal values",null,null,null,"hardware values",null,"HEX","coeff. to normalized","control","diff"]
[null,"name","range","value",null,"bits","value"]
[null,"H","-180°..+180°",59.99,null,"14s",{"$f":"INT(D6/180*2^13)","v":2730},{"$f":"DEC2HEX(G6)","v":"AAA"},"180/2^13",{"$f":"G6*180/2^13","v":59.9853515625},{"$f":"ABS(D6-J6)","v":4.6484375000019895E-3}]
[null,"S","0..255",255,null,8,{"$f":"D7","v":255},{"$f":"DEC2HEX(G7)","v":"FF"},1,{"$f":"G7","v":255},{"$f":"ABS(D7-J7)","v":0}]
[null,"L","0..255",128,null,9,{"$f":"D8*2","v":256},{"$f":"DEC2HEX(G8)","v":"100"},"1/2",{"$f":"G8/2","v":128},0]
[null,"h","0°..360°",{"$f":"MOD((D6+360), 360)","v":59.990000000000009},null,12,{"$f":"MOD((G6/2^2+2^12), 2^12)","v":682.5},{"$f":"DEC2HEX(G9)","v":"2AA"},"360/2^12",{"$f":"G9*360/2^12","v":59.9853515625},4.6484375000090949E-3]
[null,"s","0..1",{"$f":"D7/256","v":0.99609375}]
[null,"l","0..1",{"$f":"D8/256","v":0.5}]
[]
[null,"1-|2l-1|","0..1",{"$f":"1-ABS(2*D11-1)","v":1},null,9,{"$f":"2^9-ABS(2*G8-2^9)","v":512},{"$f":"DEC2HEX(G13)","v":"200"},"1/2^9",{"$f":"G13/2^9","v":1},{"$f":"ABS(D13-J13)","v":0}]
[null,"C","0..1",{"$f":"D13*D10","v":0.99609375},null,9,{"$f":"INT(G13*G7/2^8)","v":510},"1FE","1/2^9",{"$f":"G14/2^9","v":0.99609375},0]
[null,"H'","0..5.9(9)",{"$f":"D9/60","v":0.99983333333333346},null,12,{"$f":"INT(G9*273/2^9)","v":363},"16B","180/2^16",{"$f":"G15*180/2^16","v":0.99700927734375},2.8240559895834627E-3]
[null,"H' mod 2","0..2",{"$f":"MOD(D15, 2)","v":0.99983333333333346},null,10,{"$f":"MOD(G15, (2^3*273/3))","v":363},"16B","180/2^16",{"$f":"G16*180/2^16","v":0.99700927734375},2.8240559895834627E-3]
[null,"H' mod 2 - 1","-1..+1",{"$f":"MOD(D15, 2)-1","v":-1.6666666666653729E-4},null,"10s",{"$f":"G16-2^2*273/3","v":-1},"FFFFFFFFFF","180/2^16",{"$f":"G17*180/2^16","v":-2.74658203125E-3},2.5799153645834627E-3]
[null,"1-|H' mod 2 - 1|","0..1",{"$f":"1-ABS(D17)","v":0.99983333333333346},null,9,{"$f":"273/3*2^2-ABS(G17)","v":363},"16B","180/2^16",{"$f":"G18*180/2^16","v":0.99700927734375},2.8240559895834627E-3]
[null,"X","0..1",{"$f":"D14*D18","v":0.99592773437500015},null,9,{"$f":"INT(G14*G18*180/2^16)","v":508},"1FC","1/2^9",{"$f":"G19/2^9","v":0.9921875},3.740234375000151E-3]
[null,"R1","0..1",{"$f":"IF(D15<1, D14, IF(D15<2, D19, IF(D15<3, 0, IF(D15<4, 0, IF(D15<5, D19, D14)))))","v":0.99609375},null,9,{"$f":"IF(G15<364*1, G14, IF(G15<364*2, G19, IF(G15<364*3, 0, IF(G15<364*4, 0, IF(G15<364*5, G19, G14)))))","v":510},"1FE","1/2^9",{"$f":"G20/2^9","v":0.99609375},0]
[null,"G1","0..1",{"$f":"IF(D15<1, D19, IF(D15<2, D14, IF(D15<3, D14, IF(D15<4, D19, IF(D15<5, 0, 0)))))","v":0.99592773437500015},null,9,{"$f":"IF(G15<364*1, G19, IF(G15<364*2, G14, IF(G15<364*3, G14, IF(G15<364*4, G19, IF(G15<364*5, 0, 0)))))","v":508},"1FC","1/2^9",{"$f":"G21/2^9","v":0.9921875},3.740234375000151E-3]
[null,"B1","0..1",{"$f":"IF(D15<1, 0, IF(D15<2, 0, IF(D15<3, D19, IF(D15<4, D14, IF(D15<5, D14, D19)))))","v":0},null,9,{"$f":"IF(G15<364*1, 0, IF(G15<364*2, 0, IF(G15<364*3, G19, IF(G15<364*4, G14, IF(G15<364*5, G14, G19)))))","v":0},"0","1/2^9",0,0]
[null,"m","0..1",{"$f":"D11-D14/2","v":1.953125E-3},null,9,{"$f":"INT(G8-G14/2)","v":1},"1","1/2^9",{"$f":"G23/2^9","v":1.953125E-3},0]
[null,"R","0..255",{"$f":"INT((D20+$D$23)*256)","v":255},null,8,{"$f":"INT(G20/2+$G$23/2)","v":255},"FF",1,{"$f":"G24*1","v":255},0]
[null,"G","0..255",{"$f":"INT((D21+$D$23)*256)","v":255},null,8,{"$f":"INT(G21/2+$G$23/2)","v":254},"FE",1,{"$f":"G25*1","v":254},1]
[null,"B","0..255",{"$f":"INT((D22+$D$23)*256)","v":0},null,8,0,"0",1,0,0]

{"sheet":"MOD","index":2,"n_rows":11,"n_cols":5,"rows_kept":11,"cut":false,"hidden":false,"merged":[[1,2,2,5],[4,2,4,5],[5,2,5,5]]}
[]
[null,null,"division-free MOD(x, 91*2^3)"]
[]
[]
[null,null,"formula: =MOD(G15, (2^3*273/3))"]
[null,null,"MOD(G15, 91*2^3) = G15 - (91*2^3) * INT(G15 * 90 / 2^16)"]
[]
[null,null,"G15",2456]
[null,null,"m=91*2^3",{"$f":"91*2^3","v":728}]
[null,null,"int(G15/m)",{"$f":"INT(D8*90/2^16)","v":3},{"$f":"INT(D8/D9)","v":3}]
[null,null,"G15 - m * int(G15/m)",{"$f":"D8-D9*D10","v":272},{"$f":"MOD(D8, D9)","v":272}]