Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How are float32 and float64 constants written? #2

Closed
ghost opened this issue May 27, 2014 · 2 comments
Closed

How are float32 and float64 constants written? #2

ghost opened this issue May 27, 2014 · 2 comments
Assignees

Comments

@ghost
Copy link

ghost commented May 27, 2014

Is there a resource or example on the floating point constants in the message format?

@ghost ghost assigned airballking May 28, 2014
@airballking
Copy link
Contributor

Just tried this in a test message:

float32 A=-0.1
float32 B=+0.1
float32 C=-0.1
float32 D=-1e-1
float32 E=-1e-01
float32 F=-0.01e+1
float32 G=-0.01e+01
float32 H=-1E-1
float32 I=-1E-01
float32 J=-0.01E+1
float32 K=-0.01E+01
float32 K=-0.01E+01

The resulting generated common lisp codes looked like this:

((:A . -0.1) 
 (:B . 0.1) 
 (:C . -0.1) 
 (:D . -0.1) 
 (:E . -0.1) 
 (:F . -0.1) 
 (:G . -0.1) 
 (:H . -0.1) 
 (:I . -0.1)
 (:J . -0.1) 
 (:K . -0.1))

It seems, whatever python likes is fair game.

@ghost
Copy link
Author

ghost commented Jun 5, 2014

Great, this seems to be exactly what we capture right now :)

@ghost ghost closed this as completed Jun 5, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant