bob9123
bob9123

Reputation: 755

Variable floating point variable conditional Gforth

To expand this, how can I do this with variables?

 fvariable foo 6.2e foo f!
 fvariable boo 8.2e boo f!

 boo @ foo @ f> // How is this done? 

Upvotes: 2

Views: 88

Answers (1)

Lars Brinkhoff
Lars Brinkhoff

Reputation: 14315

You access floating point variables with f@ and f!.

boo f@ foo f@ f>

Upvotes: 2

Related Questions