[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using ses programatically (was: a ses question)
From: |
andrés ramírez |
Subject: |
Re: using ses programatically (was: a ses question) |
Date: |
Sun, 19 Nov 2023 19:24:06 +0000 |
Hi. Vincent.
>>>>> "Vincent" == Vincent Belaïche <vincent.b.1@hotmail.fr> writes:
Vincent> I attached an updated ses-setq macro.
[...]
I have just tested the last version of ses.el
And I have found a trivial difference.
When I code:
--8<---------------cut here---------------start------------->8---
(ses-setq :: sf N7 (+ N3 N4 N5 N6))
(setq mysum (number-to-string (ses-cell-value 6 13)))
(message (format "the sum: '%s'" mysum))
--8<---------------cut here---------------end--------------->8---
the output is:
,---- [ single digit output ]
| the sum: ’192.6’
`----
But then when code is:
--8<---------------cut here---------------start------------->8---
(ses-setq :: sf N7 (apply 'ses+ (ses-range N3 N6)))
(setq mysum (number-to-string (ses-cell-value 6 13)))
(message (format "the sum: '%s'" mysum))
--8<---------------cut here---------------end--------------->8---
the output is:
,---- [ more than one digit decimal output ]
| the sum: ’192.60000000000002’
`----
Any idea why the difference?
BTW: yesterday I have found a different issue when using keyboard
macros for copying some specific cells to different lines on another
buffer. But. Let's end this part for asking about that one.
- RE: a ses question, (continued)
- RE: a ses question, Vincent Belaïche, 2023/11/02
- Re: a ses question, Stefan Monnier, 2023/11/02
- RE: a ses question, Vincent Belaïche, 2023/11/03
- RE: a ses question, Vincent Belaïche, 2023/11/04
- Re: a ses question, andrés ramírez, 2023/11/04
- Message not available
- RE: using ses programatically (was: a ses question), Vincent Belaïche, 2023/11/05
- Re: using ses programatically (was: a ses question), andrés ramírez, 2023/11/05
- RE: using ses programatically (was: a ses question), Vincent Belaïche, 2023/11/05
- Re: using ses programatically (was: a ses question), andrés ramírez, 2023/11/05
- RE: using ses programatically (was: a ses question), Vincent Belaïche, 2023/11/19
- Re: using ses programatically (was: a ses question),
andrés ramírez <=
- RE: using ses programatically (was: a ses question), Vincent Belaïche, 2023/11/19
- RE: using ses programatically (was: a ses question), Vincent Belaïche, 2023/11/19
- Re: using ses programatically (was: a ses question), andrés ramírez, 2023/11/19