emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Max Nikulin <manikulin@gmail.com>
To: Charles Millar <millarc@verizon.net>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: Bug: Final zero after decimal point is stripped when inline code evaluated
Date: Tue, 7 May 2024 23:40:38 +0700	[thread overview]
Message-ID: <ede75c9b-9740-4bcd-9e8c-df31f2275134@gmail.com> (raw)
In-Reply-To: <aad9bb0b-4b64-4934-952d-a6cdc9f3b32f@verizon.net>

On 07/05/2024 21:25, Charles Millar wrote:
> On 5/7/24 7:49 AM, Max Nikulin wrote:
>> On 07/05/2024 03:05, Charles Millar wrote:
>>
>>> (setq toconvert 5.000)
>>> (number-to-string toconvert)
>>>
>>> evaluates to "5".
>>
>> I get "5.0" (Linux), so I suspect some mistake.
>>
> I am using Debian Testing, full upgrade as of last Saturday.

Debian bookworm stable and Emacs-28.2.

LANG, LC_NUMERIC, LC_ALL environment variable should not affect 
formatting in numbers in Emacs since the "C" locale is forced for numbers.

The only guess I have is non-default value of `float-output-format'.


      parent reply	other threads:[~2024-05-07 16:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <144951b9-d715-4fd6-a3f5-2462ff98acb0.ref@verizon.net>
2024-05-05 18:30 ` Bug: Final zero after decimal point is stripped when inline code evaluated Charles Millar
2024-05-05 18:41   ` Charles Millar
2024-05-06 12:44   ` Ihor Radchenko
2024-05-06 16:36     ` Max Nikulin
2024-05-06 16:42       ` Ihor Radchenko
2024-05-06 20:05         ` Charles Millar
2024-05-07 11:49           ` Max Nikulin
     [not found]             ` <aad9bb0b-4b64-4934-952d-a6cdc9f3b32f@verizon.net>
2024-05-07 14:31               ` Fwd: " Charles Millar
2024-05-07 16:40               ` Max Nikulin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ede75c9b-9740-4bcd-9e8c-df31f2275134@gmail.com \
    --to=manikulin@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=millarc@verizon.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).