stationeers.de Mod workshop · Dominik1199
DE Sign in
  1. Home
  2. IC10 academy
  3. Day 112

Day 112 of 365 · Advanced · Month 4: Network in detail

Review week 16: branches and tolerances

Ten questions on the week: relative branches, branches against zero and on devices, approximate comparisons with sap and sapz.

Review 12 min Week 16

What you learn today

  • Quiz on relative branches and approximate comparisons

This week was about jumps without labels and comparisons with leeway. For review:

  • Relative branches (breq … brge, jr) jump by a distance: 1 is the next line, 2 skips one. Every line counts, comments too. A label as a distance is almost always wrong.
  • Against zero: breqz … brgez and brnan. Build the deviation first, then the sign decides. On NaN only brnan jumps.
  • With devices: brdse and brdns for short fallback lines. Over whole sections a label is better.
  • Approximately equal: sap, sna, bap, bna, brap, brna with relative tolerance c × max(|a|, |b|). On NaN sap and sna both return 0 in the game.
  • Approximately zero: the z forms practically only take effect at exactly 0. For “almost zero” an absolute limit with abs and slt. epsilon is not the tolerance of the ap instructions.

You pass from 60 %, the explanations appear after handing in.

Weekly quiz

10 questions. You pass from 60 % – the server does the grading.

Complete the day

  • Passed the quiz with at least 60 %

Without an account progress is saved in this browser only.

Report a mistake in this lesson

Please sign in to report. Sign in

Esc
↑ ↓ selectEnter open/ opens search anywhere