viewing paste Unknown #35473 | Athena

Posted on the
1 2 3 4 5 6 7 8
query_sql "SELECT ROUND((1.0 / (1.0 + POW(10.0, ((" + .@points1[1] + ".0 - " + .@points1[0] + ".0) / 400.0)))), 1)", .@E1$;
query_sql "SELECT ROUND((1.0 / (1.0 + POW(10.0, ((" + .@points1[0] + ".0 - " + .@points1[1] + ".0) / 400.0)))), 1)", .@E2$;
.@S1$ = (.@bool == 1 ? "1.0" : .@bool == 2 ? "0.0" : "0.5");
.@S2$ = (.@bool == 1 ? "0.0" : .@bool == 2 ? "1.0" : "0.5");
query_sql "SELECT ROUND((" + .@points1[0] + ".0 + 16.0 * (" + .@S1$ + " - " + .@E1$ + ")), 1)", .@R1d$;
query_sql "SELECT ROUND((" + .@points1[1] + ".0 + 16.0 * (" + .@S2$ + " - " + .@E2$ + ")), 1)", .@R2d$;
if (atoi(.@R1d$) > 300) .@R1d$ = "300";
if (atoi(.@R2d$) > 300) .@R2d$ = "300";
Viewed 1035 times, submitted by eikzdej.