When I debug in Slime and inspect the value of a floating point variable, I see something like
6.8998337e-4
However, I find that very hard to read and would prefer
0.00068998337
How can I achieve that?
When I debug in Slime and inspect the value of a floating point variable, I see something like
6.8998337e-4
However, I find that very hard to read and would prefer
0.00068998337
How can I achieve that?
Copyright © 2021 Jogjafile Inc.
First:
In slime/sly, when you Inspect (C-c I) the value 6.8998337e-4, you get:
The "Scientific" value is formatted in swank/slynk in contrib/swank-fancy-inspector.lisp or contrib/slynk-fancy-inspector.lisp :
You could modify emacs-inspect method and change
(format nil "~E" f)to(format nil "~F" f), or you could shadow emacs-inspect with an emacs-inspect :around method to modify the behavior to use "~F".