[grbl Issue#40] Floating point calculations in float?

未分类 bolang 6个月前 (10-14) 48次浏览

Issue #40 | 状态: 已关闭 | 作者: jgeisler0303 | 创建时间: 2011-08-18


This is not really an issue but a question: did you ever try to run the floating point calculations in float instead of double? 7 significant decimals may be precise enough. I though I ask you before trying it myself.
Cheers, Jens


评论 (3)

#1 – simen 于 2011-08-18

I believe the avr-gcc implements all floating point types as 32-bit
IEEE 754 floating-point numbers, so I think you will find that it
makes absolutely no difference at all. That said I can’t say I have
had trouble with precision. I have tried to code everything so that no
cumulative errors can accrue, and in my experience the precision of
the parts I fabricate is incredible.

On Thu, Aug 18, 2011 at 12:49 PM, jgeisler0303
reply@reply.github.com
wrote:

> This is not really an issue but a question: did you ever try to run the floating point calculations in float instead of double? 7 significant decimals may be precise enough. I though I ask you before trying it myself.
> Cheers, Jens
>
> ##
>
> Reply to this email directly or view it on GitHub:
> https://github.com/simen/grbl/issues/40


#2 – jgeisler0303 于 2011-08-18

yes thanks. indeed you’re right. i didn’t know this. it’s said here for example: http://www.avrfreaks.net/index.php?name=PNphpBB2&file=printview&t=80868&start=0


#3 – simen 于 2011-08-19

My god, I should get my act together and set up a forum for Grbl.


原始Issue: https://github.com/grbl/grbl/issues/40

喜欢 (0)