help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Joining large and small float into array - difference in result - SO


From: Pavel Hofman
Subject: Re: Joining large and small float into array - difference in result - SOLVED
Date: Mon, 11 Mar 2019 23:31:21 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1


Dne 11. 03. 19 v 23:10 Pavel Hofman napsal(a):
Hi,

I am encountering a weird problem.

I need to place float timestamp (time()) and another float into one vector.

debug> a
a =    1.70434168467182e-06
debug> timestamp
timestamp =  1552340333.21415
debug> a
a =    1.70434168467182e-06
debug> b = [timestamp, a]
b =

    1.55234035200000e+09   1.70434168467182e-06

My apology - single vs. double. I changed everything to double and it works fine now.

Pavel.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]