Re: Fast extraction of fraction part from float.
- From: Phil Carmody <thefatphil_demunged@xxxxxxxxxxx>
- Date: 21 Dec 2005 01:31:04 +0200
"Friar Broccoli" <EliasRK@xxxxxxxxx> writes:
> Phil Carmody wrote:
> > "Friar Broccoli" <EliasRK@xxxxxxxxx> writes:
> > > Hello World;
> > >
> > > I need to extract the fraction part from floats for a script I
> > > am working on in my text editor (TSE). The scripting language
> > > does NOT include floating point ops, however it does include
> > > binary ops like shifting, AND, OR, XOR etc.
> >
> > If the scripting language does not include floating point ops,
> > then how does it
'it' being the scripting language
> > represent the floats whose fractional part you
> > want to extract?
>
> There are several answers to this question depending on the context.
>
> In my current situation most dates within Windows are represented as
> floating point numbers (usually doubles). The whole part is a count
> of the
> days since Dec 31, 1899, and the fraction part is the time, where for
> example: .1 binary is 12:00:00; .11 is 18:00:00; .01 is 06:00:00 etc
>
> So for this case the answer is that I will be representing the
> fractional
> part as a time of day
You are not a scripting language. You are a free man.
Your response really didn't answer my question. Too bad.
Phil
--
What is it: is man only a blunder of God, or God only a blunder of man?
-- Friedrich Nietzsche (1844-1900), The Twilight of the Gods
.
- References:
- Fast extraction of fraction part from float.
- From: Friar Broccoli
- Re: Fast extraction of fraction part from float.
- From: Phil Carmody
- Re: Fast extraction of fraction part from float.
- From: Friar Broccoli
- Fast extraction of fraction part from float.
- Prev by Date: Re: Strange behaviour in Windows 98
- Next by Date: Re: Interesting article on FOSS licenses.
- Previous by thread: Re: Fast extraction of fraction part from float.
- Next by thread: Re: Fast extraction of fraction part from float.
- Index(es):
Relevant Pages
|