A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-September/028693.html below:

[Python-Dev] Subsecond time stamps

[Python-Dev] Subsecond time stamps [Python-Dev] Subsecond time stampsBrian Quinlan brian@sweetapp.com
Mon, 09 Sep 2002 16:55:15 -0700
MvL wrote:

> That's not true. Support you have two fields, tv_sec and tv_nsec. Then
> the resulting float expression is
> 
>    tv_sec + 1e-9 * tv_nsec;
> 
> This expression works on all systems that support floating point
> numbers - be it IEEE or not.

Don't you have to truncate tv_sec for that to work? i.e.

	Truncate(tv_sec, 9) + 1e-9 * tv_nsec

Cheers,
Brian




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4