help-gnu-emacs archive search

Search String: Display: Description: Sort:

Results:

References: [ emacs (Too many documents hit. Ignored) ] [ float: 354 ]

Total 354 documents matching your query.

1. Re: Inconsistency: sometimes an integer, sometimes a float (score: 331)
Author: HIDDEN
Date: Thu, 23 Jan 2014 22:42:06 +0100
A 64-bit emacs wouldn't be a solution, you'd just increase the number of cases where (/ (1+ n) p) is not of the same type as (/ n p).n Instead, write: (defun float/ (dividend divisor &rest divisors)
/archive/html/help-gnu-emacs/2014-01/msg00372.html (6,866 bytes)

2. Re: Syntax for <%%(diary-float )> (score: 313)
Author: HIDDEN
Date: Wed, 12 Oct 2022 22:37:19 +0300
(diary-float 1 1 1) this gives me void variable date, there is problem. Use C-h f on function to examine it: {C-h f diary-float RET} diary-float is a Lisp closure in ‘diary-lib.el’. (diary-float
/archive/html/help-gnu-emacs/2022-10/msg00180.html (6,884 bytes)

3. Re: Syntax for <%%(diary-float )> (score: 304)
Author: HIDDEN
Date: Wed, 12 Oct 2022 22:42:02 +0300
Debugger entered--Lisp error: (void-variable date) (calendar-day-of-week date) (= dayname (calendar-day-of-week date)) (and (= dayname (calendar-day-of-week date)) (let* ((m (calendar-extract-month d
/archive/html/help-gnu-emacs/2022-10/msg00181.html (7,619 bytes)

4. Re: Inconsistency: sometimes an integer, sometimes a float (score: 304)
Author: HIDDEN
Date: Thu, 23 Jan 2014 17:07:32 +0100
Err, sorry for previous message, it was sent by accident. What I was saying is : I can reproduce this from -Q : /tmp $ emacs -Q --batch --eval '(message "%s" (type-of (/ 536870912 1000000)))' float /
/archive/html/help-gnu-emacs/2014-01/msg00355.html (6,811 bytes)

5. Re: Inconsistency: sometimes an integer, sometimes a float (score: 296)
Author: HIDDEN
Date: Fri, 24 Jan 2014 14:25:58 -0800 (PST)
That's indeed consistent, but wouldn't work for my purposes, since what I really want is the millions group as an integer. (And later perhaps also the billions... groups.) Problem simplified, solved
/archive/html/help-gnu-emacs/2014-01/msg00411.html (6,245 bytes)

6. Re: Inconsistency: sometimes an integer, sometimes a float (score: 296)
Author: HIDDEN
Date: Fri, 24 Jan 2014 20:28:32 +0100
It is not a bug, it is a design of the language. Yes, emacs lisp is ill-designed. If you want a better designed lisp, consider Common Lisp. Namely, emacs numeric datatypes are limited to fixnums and
/archive/html/help-gnu-emacs/2014-01/msg00408.html (7,829 bytes)

7. RE: Inconsistency: sometimes an integer, sometimes a float (score: 296)
Author: HIDDEN
Date: Fri, 24 Jan 2014 14:39:45 +0000
Cool bug! How in the world did you find it? FYI emacs 24.3.1 on AIX 6.1, power pc architecture has this bug, but not on CYGWIN. ,Douglas Douglas Lewan Shubert Ticketing (201) 489-8600 ext 224 Of cour
/archive/html/help-gnu-emacs/2014-01/msg00395.html (6,876 bytes)

8. Re: Inspecting integer, float values from hexl-mode (score: 296)
Author: HIDDEN
Date: Fri, 11 Feb 2011 17:02:37 +0100
I have gone the route of using `od' since it simplifies a lot the interpretation of floating point types. So far I have written a small function that reads floats, but it's trivial to modify in order
/archive/html/help-gnu-emacs/2011-02/msg00161.html (7,099 bytes)

9. Re: Bug with diary-float ? (score: 296)
Author: HIDDEN
Date: Fri, 25 Apr 2008 21:40:28 -0400
Huh? Are you saying that May 4, 2008 should count as a "5th Sunday of the month"? diary-float works as I'd expect for all cases where the date actually exists in the month e.g. 1st Wednesday, 3rd Wed
/archive/html/help-gnu-emacs/2008-04/msg00613.html (7,054 bytes)

10. Re: Syntax for <%%(diary-float )> (score: 287)
Author: HIDDEN
Date: Wed, 12 Oct 2022 21:59:06 +0200
Of course you must use it in the diary or org (or in any other valid context)! Alternatively you can bind the special variable `date` if you want to play with diary sexps (but load diary and calendar
/archive/html/help-gnu-emacs/2022-10/msg00182.html (4,944 bytes)

11. Re: Syntax for <%%(diary-float )> (score: 287)
Author: HIDDEN
Date: Wed, 12 Oct 2022 21:23:49 +0200
(diary-float t 5 1)? Michael.
/archive/html/help-gnu-emacs/2022-10/msg00179.html (4,320 bytes)

12. How to check if a string represent an elisp number (including float), without trailing garbage (score: 287)
Author: HIDDEN
Date: Tue, 16 Oct 2018 21:38:23 +0200
`number-to-string' ignores garbage so that falsify the output for any string beginning with a number but not being one, `cl-parse-integer' raise an error instead of returning nil, and doesn’t suppo
/archive/html/help-gnu-emacs/2018-10/msg00200.html (4,732 bytes)

13. Re: ‘truncate’ on (float-time) causes arith range error on 32bit emacs (score: 287)
Author: HIDDEN
Date: Wed, 03 Feb 2016 20:09:51 +0200
Hi, I guess (a) will work, I just sent a patch to the user to test (I do not have a 32bit machine, though the math worked). This is what the function does: (defun forecast--sun-position-graphic () "V
/archive/html/help-gnu-emacs/2016-02/msg00045.html (6,036 bytes)

14. Re: ‘truncate’ on (float-time) causes arith range error on 32bit emacs (score: 287)
Author: HIDDEN
Date: Fri, 29 Jan 2016 09:55:00 +0000
The Emacs integer representation is not the same size as a native machine integer, and the values you are using here are out of range. See the elisp manual: (info "(elisp) Integer Basics"). For examp
/archive/html/help-gnu-emacs/2016-01/msg00349.html (6,842 bytes)

15. Not an in-range integer, float, or cons of integers (score: 287)
Author: HIDDEN
Date: Mon, 9 Feb 2015 11:12:10 +0100
Hello! I have a dual heading setup, and it happens that when I try to drag and drop a file from the Eclipse navigator to Emacs moving from one to the other screen, I get the message: x-dnd-handle-xdn
/archive/html/help-gnu-emacs/2015-02/msg00179.html (4,595 bytes)

16. Re: Inconsistency: sometimes an integer, sometimes a float (score: 287)
Author: HIDDEN
Date: Thu, 23 Jan 2014 17:03:11 +0100
I can reproduce this () -- Nico.
/archive/html/help-gnu-emacs/2014-01/msg00354.html (5,971 bytes)

17. Re: Inconsistency: sometimes an integer, sometimes a float (score: 287)
Author: HIDDEN
Date: Thu, 23 Jan 2014 16:50:12 +0100
I cannot reproduce with the below Emacs: (type-of (/ 536870911 1000000)) => integer (type-of (/ 536870912 1000000)) => integer (emacs-version) => GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ V
/archive/html/help-gnu-emacs/2014-01/msg00353.html (6,689 bytes)

18. Inconsistency: sometimes an integer, sometimes a float (score: 287)
Author: HIDDEN
Date: Thu, 23 Jan 2014 02:39:07 -0800 (PST)
"(/ 536870911 1000000)" is an integer. "(/ 536870912 1000000)" is a float. I know why, but it's still unpleasant to have to program around it. I suppose this begs the question of when there will be a
/archive/html/help-gnu-emacs/2014-01/msg00351.html (5,851 bytes)

19. Re: Inspecting integer, float values from hexl-mode (score: 287)
Author: HIDDEN
Date: Fri, 04 Feb 2011 10:38:21 -0500
hexl-mode shows integers in byte order. On Intel platforms that makes mental conversion from hex to integer just a little harder. I use this to convert hex in logical byte order to decimal: (defun x2
/archive/html/help-gnu-emacs/2011-02/msg00058.html (6,020 bytes)

20. Re: Inspecting integer, float values from hexl-mode (score: 287)
Author: HIDDEN
Date: Fri, 04 Feb 2011 10:25:38 -0500
Not that I know, no. That sounds like a reasonably straightforward way to do it, yes. The function hexl-current-address should do just that. It would probably make sense to try and include such a fe
/archive/html/help-gnu-emacs/2011-02/msg00056.html (5,728 bytes)


This search system is powered by Namazu