# Copyright (c) 2017 Timothy Savannah under LGPL version 2.1. See LICENSE for more information. # # Some conversion functions