Adding unit tests and a short notice in the documentation about float and double values.