document float32 literals, fixes #2821
update quaternion example code