[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: REQUEST - bash floating point math support
From: |
Léa Gris |
Subject: |
Re: REQUEST - bash floating point math support |
Date: |
Mon, 17 Jun 2024 08:56:19 +0200 |
User-agent: |
Mozilla Thunderbird |
Le 16/06/2024 à 23:44, Zachary Santer écrivait :
How do you propose to take an LC_NUMERIC-formatted floating-point
literal and assign it to a variable with the numeric flag or make use
of it in another type of arithmetic context?
This proposal does not include conversion of locale formatted literals.
Anyway, this could be handled with existing bash string replacement feature:
localeFormatted=3,1415
declare -i numvar=${localeFormatted/,/.}
--
Léa Gris
- Re: REQUEST - bash floating point math support, (continued)
- Re: REQUEST - bash floating point math support, Saint Michael, 2024/06/12
- Re: REQUEST - bash floating point math support, Martin D Kealey, 2024/06/13
- Re: REQUEST - bash floating point math support, Léa Gris, 2024/06/14
- Re: REQUEST - bash floating point math support, Saint Michael, 2024/06/14
- Re: REQUEST - bash floating point math support, Koichi Murase, 2024/06/14
- Re: REQUEST - bash floating point math support, Léa Gris, 2024/06/15
- Re: REQUEST - bash floating point math support, Koichi Murase, 2024/06/15
- Re: REQUEST - bash floating point math support, Léa Gris, 2024/06/15
- Re: REQUEST - bash floating point math support, alex xmb sw ratchev, 2024/06/15
- Re: REQUEST - bash floating point math support, Zachary Santer, 2024/06/16
- Re: REQUEST - bash floating point math support,
Léa Gris <=
- Re: REQUEST - bash floating point math support, Koichi Murase, 2024/06/17
- Re: REQUEST - bash floating point math support, Léa Gris, 2024/06/17
- Re: REQUEST - bash floating point math support, Zachary Santer, 2024/06/17
- Re: REQUEST - bash floating point math support, Chet Ramey, 2024/06/21
- Re: REQUEST - bash floating point math support, alex xmb sw ratchev, 2024/06/21
- Re: REQUEST - bash floating point math support, Chet Ramey, 2024/06/21
- Re: REQUEST - bash floating point math support, Saint Michael, 2024/06/21
- Re: REQUEST - bash floating point math support, alex xmb sw ratchev, 2024/06/21
- Re: REQUEST - bash floating point math support, Chet Ramey, 2024/06/21
- Re: REQUEST - bash floating point math support, Chet Ramey, 2024/06/12