Re: [fpc-pascal] why the 0.5 in the Unix Epoch (for UnixToDateTime function)

2017-08-01 Thread Paul Nance
Actually the Julian calendar started at noon, the 0.5 is added to get to midnight. The Julian calendar was developed for astronomers, who view the sky when it gets dark and want all observing to be referenced to the same date. Us normal people start our day at midnight so we have to add the extra h

Re: [fpc-pascal] Freepascal Floating Point Issue

2017-08-22 Thread Paul Nance
Turbo Pascal also had a BCD unit. On Aug 22, 2017 6:56 PM, "Ralf Quint" wrote: > On 8/22/2017 1:39 PM, Mark Morgan Lloyd wrote: > > On 21/08/17 22:15, Ralf Quint wrote: > >> On 8/21/2017 3:02 PM, James Richters wrote:> I am having an issue > >> with a simple floating point application. I am set

Re: [fpc-pascal] Obtain file size?

2017-10-07 Thread Paul Nance
I've always (since Turbo Pascal and now with Free Pascal) used FILESIZE. It works like a charm. Even if you do it in assembly its done the same as its done in pascal. On Oct 6, 2017 7:14 PM, "James Richters" wrote: I am wondering how to get the file size reported by the OS for a particular file

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-04-01 Thread Paul Nance
I couldn't agree more. I still program in (what everyone now calls console) pascal. While working on a large project, will even go into virtual machine to use the Borland Pascal 7 IDE, which works a little better than the FPC IDE. Of course, having started pascal with Borland's Pascal for CPM alm

Re: [fpc-pascal] Loss of precision when using math.Max()

2018-07-03 Thread Paul Nance
It's hard to make things fool proof, fool's are too ingenius. On Jul 2, 2018 6:14 PM, "Wolf" wrote: > Not so long ago, Florian was proudly bragging about "Pascal does not allow > you to shoot yourself in the foot > " > > What a