diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-10-26 22:04:26 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-10-26 22:04:26 -0700 |
commit | 9c952560daefd45b6a554661401f1f90bf2a6abf (patch) | |
tree | d4b253de096390714c79f0ad83f39cc3a389916a /tutorial | |
parent | c055c4781f63a276adbb0028f724cc6235288ba5 (diff) | |
download | mu-9c952560daefd45b6a554661401f1f90bf2a6abf.tar.gz |
.
Diffstat (limited to 'tutorial')
-rw-r--r-- | tutorial/index.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tutorial/index.md b/tutorial/index.md index aa803d98..0ea92a3f 100644 --- a/tutorial/index.md +++ b/tutorial/index.md @@ -283,7 +283,7 @@ var x/edx: int <- copy 0 Run `translate` (or `translate_emulated`) as usual. Use your runbook from Task 6 to address the errors that arise. -## Task 8: floating point +## Task 8: fractional numbers All our variables so far have had type `int` (integer), but there are limits to what you can do with just whole integers. For example, here's the formula @@ -297,7 +297,7 @@ distance * 1.609 Write a function to perform this conversion. Some starting points: * Reread [the section on variables and registers](https://github.com/akkartik/mu/blob/main/mu.md#variables-registers-and-memory) with special attention to the `float` type. -* Read [the section on floating-point arithmetic](https://github.com/akkartik/mu/blob/main/mu.md#floating-point-arithmetic). +* Read [the section on fractional arithmetic](https://github.com/akkartik/mu/blob/main/mu.md#fractional-arithmetic). * One wrinkle is that the x86 instruction set doesn't permit literal fractional arguments. So you'll need to _create_ 1.609 somehow. See the section on moving values around under [operations on simple types](https://github.com/akkartik/mu/blob/main/mu.md#operations-on-simple-types). |