Unit tests for the to_bytes function
Unit tests for the floor function
Implementation of the floor function