Skip to main content

Fractions arithmetic in Snap!

Downloaded: 430

Last edit: 05 November 2021

Language/Platform Other
Subject Knowledge Programming and Development
Key Stage 3 Programming

Some simple functions (gcd, simplification, addition, subtraction, multiplication and division) for working with fractions in BYOB Snap!

Each fraction is represented as a list numerator, denominator, which could be used as an example of a data structure at KS3.

I think this could be useful to link with KS2 maths.

The gcd function uses Euclid's algorithm and recursion, so might be useful for illustrating these too.

Level: Intermediate

Edit history

Unlock