## Function: COMMON-LISP:RATIONALIZE [![package](https://img.shields.io/badge/Package-COMMON--LISP-5f9ea0.svg?style=social&colorA=999999)](../) [![type](https://img.shields.io/badge/Type-Function-5f9ea0.svg?style=social&colorA=999999)](../#function) [![clhs](https://img.shields.io/badge/CLHS-RATIONALIZE-5f9ea0.svg?style=social&colorA=999999)](http://www.lispworks.com/documentation/HyperSpec/Body/f_ration.htm) [![github](https://img.shields.io/badge/GitHub-View_the_source-5f9ea0.svg?style=social&colorA=999999&logo=github)](https://github.com/sbcl/sbcl/blob/master/src/code/float.lisp/) > Converts any REAL to a RATIONAL. Floats are converted to a simple rational > representation exploiting the assumption that floats are only accurate to > their precision. RATIONALIZE (and also RATIONAL) preserve the invariant: > (= x (float (rationalize x) x)) ### Lambda list ```cl (sb-kernel::x) ```