Displaying 20 results from an estimated 8000 matches similar to: "RFC: hexadecimal constants and decimal points"
2005 Nov 10
1
R-help: conversion of long decimal numbers into hexadecimal
Hi there,
could somebody help me to convert a decimal number into a hexadecimal number? I know that there is the function "sprintf", but the numbers I want to convert consist of 20 or more numbers. "Spintf" is not able to convert these big numbers.
Thanks for any help.
Antje
[[alternative HTML version deleted]]
2020 Jan 28
2
[RFC] Print FP constant assembly in hexadecimal form instead of decimal
Hi:
When debugging some floating point assembly, we found it is inconvenient to
read the decimal constants in assembly.
In hex form many FP numbers are immediately recognizable, their exponents
are more obvious etc.
We normally use hex form in debugger or LLVM IR,
not sure what is the reason that we want to use decimal in assembly?
The form change won't change precision or affecting
2006 Aug 30
8
converting decimal - hexadecimal
Hi,
do you know, a method to convert an decimal value (integer) to the
corresponding hexadecimal value ?
thinks for help.
Romain
--
Lorrilli?re Romain
UMR 8079 Laboratoire Ecologie, Syst?matique et Evolution
B?t. 362
Universit? Paris-Sud
91405 Orsay cedex
France
tel : 01 69 15 56 85
fax : 01 69 15 56 96
mobile : 06 81 70 90 70
email : romain.lorrilliere at ese.u-psud.fr
2020 May 22
6
RFC: *scanf vs. overflow
It has long been known that the C specification of *scanf() leaves
behavior undefined for things like
int i;
sscanf("9999999999999999", "%i", &i);
C11 7.21.6.2 P12
"Matches an optionally signed integer, whose format is the same as
expected for the subject sequence of the strtol function with the value
0 for the base argument."
C11 7.21.6.2 P10
"If this
2005 Oct 24
2
Compilation package error
Dear all,
I tried to install gstat package and add the following compilation error :
------------------------>
* Installing *source* package 'gstat' ...
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether
2016 Dec 20
2
Very small numbers in hexadecimal notation parsed as zero
Hi all,
I have noticed incorrect parsing of very small hexadecimal numbers
like "0x1.00000000d0000p-987". Such a hexadecimal representation can
can be produced by sprintf() using the %a flag. The return value is
incorrectly reported as 0 when coercing these numbers to double using
as.double()/as.numeric(), as illustrated in the three examples below:
2019 Jan 11
2
strtoi output of empty string inconsistent across platforms
>>>>> Martin Maechler
>>>>> on Fri, 11 Jan 2019 09:44:14 +0100 writes:
>>>>> Michael Chirico
>>>>> on Fri, 11 Jan 2019 14:36:17 +0800 writes:
>> Identified as root cause of a bug in data.table:
>> https://github.com/Rdatatable/data.table/issues/3267
>> On my machine, strtoi("", base =
2019 Sep 19
5
Re: [PATCH nbdkit v3 2/3] Add new retry filter.
On 9/19/19 10:26 AM, Richard W.M. Jones wrote:
> This filter can be used to transparently reopen/retry when a plugin
> fails. The connection is closed and reopened which for most plugins
> causes them to attempt to reconnect to their source.
>
> For example if doing a long or slow SSH copy:
>
> nbdkit -U - ssh host=remote /var/tmp/test.iso \
> --run 'qemu-img
2014 Dec 15
2
Replace atoi and atol with strtol strtoul:Need Help
Hello,
I am working on replacing atoi () and atol() functions with strtol() and
strtoul() . I came across many files which uses statement like these
time_t secs= atoi(data_span.c_str()), here time_t Datatype is not known but
wikipedia says that it is integer so is it necessary to replace atoi with
strtol over here ??
And is their any document which helps me what each file function does like
2015 Apr 10
2
[LLVMdev] Intercepting dlinfo in memory sanitizer
Thanks! I'll try that.
In order to avoid starting a new thread, let me ask you the next question.
One of the shared libraries I load calls strtol and msan fails to intercept
it. Why would this be? The library seems to be otherwise implemented. One
of the potential culprits I saw is that strtol is marked as strong in libc.
Is there any workaround?
Keno
On Thu, Apr 9, 2015 at 3:00 PM, Evgeniy
2007 May 01
2
integer constants given by hexadecimal notation (PR#9648)
On 01/05/2007 7:21 AM, Stephan wrote:
> Hi,
>
>> 0x10L
> returns: int 0
>
> I would expect: int 16?
> This happens with all integer constants given by hexadecimal notation.
> It's a bug?
Certainly looks like one; I've cc'd this to the bug list (but won't be
able to look into fixing it).
Duncan Murdoch
>
>
>> sessionInfo()
> R
2019 Jan 11
2
strtoi output of empty string inconsistent across platforms
Identified as root cause of a bug in data.table:
https://github.com/Rdatatable/data.table/issues/3267
On my machine, strtoi("", base = 2L) produces NA_integer_ (which seems
consistent with ?strtoi: "Values which cannot be interpreted as integers or
would overflow are returned as NA_integer_").
But on all the other machines I've seen, 0L is returned. This seems to be
2007 May 01
1
integer constants given by hexadecimal notation
Hi,
> 0x10L
returns: int 0
I would expect: int 16?
This happens with all integer constants given by hexadecimal notation.
It's a bug?
> sessionInfo()
R version 2.5.0 (2007-04-23)
i386-pc-mingw32
locale:
LC_COLLATE=German_Germany.1252;LC_CTYPE=German_Germany.1252;LC_MONETARY=German_Germany.1252;LC_NUMERIC=C;LC_TIME=German_Germany.1252
attached base packages:
[1] "stats"
2010 Nov 03
1
[LLVMdev] "multiple definition of .. " in clang 2.8
It appears you filed PR 8538 about this, but didn't cc yourself. You should look at it; I don't think this is a clang problem.
> It seems that the problem occurs from the optimization level. In the 2.7
> version I was using -O0 and in 2.8 I tested the same benchmarks with -O3.
>
> clang -O0 works fine, while clang -O3 makes redefinitions (probably it is
> related to
2023 May 24
1
Synthesize low batt (LB) fron SNMP UPS which does not support this?
Hi again,
On 5/22/23 18:31, Willcox David via Nut-upsuser wrote:
> Hmm. Is there maybe something there already that will do this? Maybe
> kind of back-handed.
>
> In drivers/dstate.c, I see:
>
> 1. In status_init(), if ?driver.flag.ignorelb? is set in the driver
> state, the ?ignorelb? flag is set.
> 2. In status_set(), if ignorelb is set, and the status being set
2006 Nov 04
2
[LLVMdev] Port succesful
I made the windows port, the first example compiled and executed correctly.
I am sending a patch so you can test it if i didn't break linux
compatibility.
Otherwise, I will look into deja-gnu testing, perhaps can compile it on
windows. I will
also add other beckend in the future (Sparc, PowerPC). I hope windows using
Visual C++ will be soon officially supported :)
About the problem I had
2003 Sep 18
0
hexadecimal fwmark and fwmark mask
Hi list,
I''m new to this list, I just subscribed because I have some ackward
about IPRoute2.
First, while playing with NetFilter'' "MARK" target, I met a weird
behaviour once I tried to use this marks in the RPDB : the packets
where successfully marked, but it seemed that RPDB didn''t succed in
matching them (for those who already know the answer, I only used
2010 Nov 02
1
SFTP subsystem and umask
Hello,
I have noticed that the -u parameter to the sftp-server or internal-sftp subsystem is not working correctly. For openssh-5.6p1 I believe that the problem lies in this code, starting at line 1414 in sftp-server.c:
----------------------------------------------------------
case 'u':
mask = (mode_t)strtonum(optarg, 0, 0777, &errmsg);
if (errmsg != NULL)
2009 Feb 16
2
[Bug 577] New: cannot set spi/reqid numbers higher than 0x7fffffff (policy match)
http://bugzilla.netfilter.org/show_bug.cgi?id=577
Summary: cannot set spi/reqid numbers higher than 0x7fffffff
(policy match)
Product: iptables
Version: unspecified
Platform: i386
OS/Version: All
Status: NEW
Severity: normal
Priority: P1
Component: iptables
AssignedTo: laforge
2005 Nov 14
1
as.integer with base other than ten.
Is there an R function analogous to the C function strtol?
I would like to convert a binary string into an integer.
Cheers for advice
Will
--
__________________________________________________
William Astle
Statistical Genetics,
David Balding's Group.
Imperial College,
St Mary's Hospital Campus,
147 Norfolk Place,
Paddington.
London.
W2 1PG