Re: [fpc-pascal] Freepascal Floating Point Issue

2017-08-21 Thread Daniel Franzini
Long story short: not every single real number have an *exact* representation in the computer. You have to live with that and learn the limitations and pitfalls of floating point calculations. On Mon, Aug 21, 2017 at 7:42 PM, Ralf Quint wrote: > On 8/21/2017 3:34 PM, Daniel Franzini wr

Re: [fpc-pascal] Freepascal Floating Point Issue

2017-08-21 Thread Daniel Franzini
It might be the case (I didn't do the math) that 999.999 doesn't have an exact representation in IEEE-754 double-precision format, so the best you get is an aproximation (a pretty good one, btw). On Mon, Aug 21, 2017 at 7:10 PM, Ralf Quint wrote: > On 8/21/2017 3:02 PM, James Richters wrote: > >

Re: [fpc-pascal] New Get Lazarus Initiative

2015-02-04 Thread Daniel Franzini
Quick fix: in the download page, the link to the InnoSetup website is wrong. Should be: http://www.getlazarus.org/setup/www.jrsoftware.org/isinfo.php On Wed, Feb 4, 2015 at 10:15 AM, Daniel Franzini wrote: > Congratulations for such initiative. Very nice. I hope this helps > Lazarus/FPC

Re: [fpc-pascal] New Get Lazarus Initiative

2015-02-04 Thread Daniel Franzini
Congratulations for such initiative. Very nice. I hope this helps Lazarus/FPC to get more visibility. Just one point: I'd strongly recommend you provide a build with stable/production versions of Lazarus and FreePascal. They are the best the Lazarus/FPC team can offer and they have production qual

Re: [fpc-pascal] a book about freepascal [off-topic]

2007-06-13 Thread Daniel Franzini
On 6/13/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: On Wed, 13 Jun 2007, Daniel Franzini wrote: > Hi > > I'm not sure if you guys are aware of this but here it goes. > > A brazilian publisher named Editora Erica (www.erica.com.br) published > a brand new book abou

[fpc-pascal] a book about freepascal [off-topic]

2007-06-13 Thread Daniel Franzini
Hi I'm not sure if you guys are aware of this but here it goes. A brazilian publisher named Editora Erica (www.erica.com.br) published a brand new book about introdutory computer programming with FreePascal. http://www.editoraerica.com.br/buscafinal.asp?cod=1369 A (possible) translation of the

Re: [fpc-pascal] representation of a number

2007-04-01 Thread Daniel Franzini
On 4/1/07, Marco van de Voort <[EMAIL PROTECTED]> wrote: Keep in mind that the extended type has limited precision. It can contain large values, but does so by only "remembering" the upper +/- 18 digits, sign and exponent. OK, i will work on that If it is a content, I think they want you t

[fpc-pascal] representation of a number

2007-04-01 Thread Daniel Franzini
Hi all I'm having some fun solving some programming problems in SPOJ (www.spoj.pl, very very cool, check it out). The thing is that is need to calculate some big fatorials (~100!). With FPC and the standard integer types I was unable to perform the correct calculations because 100! is bigger than

Re: [fpc-pascal] FPC in DOS environment

2007-01-24 Thread Daniel Franzini
today (quite late) i've got myself some improvements...so far i was unable to even compile some parts od fpc within freedos (inside virtual pc)...the IDE that comes with fpc2.0.5 does not even start at all...now i can compile correctly all the packages needed to build the ide (as Pierre pointed)..

Re: [fpc-pascal] FPC in DOS environment

2007-01-17 Thread Daniel Franzini
for now, on MS Virtual PC with fpc2.0.5 stable for go32v2, the IDE does not even get loaded correctly...it displays some info on compiler and ide version, shows the nice FP screen and then exits quickly...i will try to recompile from the sources with debug info to see exactly where it stops (altou

Re: [fpc-pascal] FPC in DOS environment

2007-01-16 Thread Daniel Franzini
On 1/12/07, Tomas Hajny <[EMAIL PROTECTED]> wrote: In general case when using plain DOS (when using virtual DOS machines provided by some other platforms like WinXX or OS/2, DPMI is provided directly by the platform and interface to it is part of the VDM kernel). The only "magic" is detection of

Re: [fpc-pascal] FPC in DOS environment

2007-01-16 Thread Daniel Franzini
thanks for the help On 1/11/07, Daniël Mantione <[EMAIL PROTECTED]> wrote: Well, help is certainly very welcome, but note that more is needed than one or two bug fixes. To make it a first platform again someone is needed who really uses Dos, so he quickly notes when something is wrong and ca

Re: [fpc-pascal] How can i detect what cause the problem

2007-01-11 Thread Daniel Franzini
this happens because windows API code usually have two versions: an Ascii version where chars are 8-bit ASCII (with the suffix A, and used mainly in 9x code) and other where the chars are 2-byte unicode chars with the W suffix, used mainly in 2000/XP stuff (guess W means wide in the sense of wides

[fpc-pascal] FP IDE in DOS env

2007-01-11 Thread Daniel Franzini
I'm trying to write some pascal code on a DOS env (FreeDOS 1.0). Is the IDE for this plataform mantained?! The command line compiler does run fine, but the IDE shows up and quickly disapears. Has anyone suffered this before?!!?? -- Daniel "Let us change our traditional attitude to the construct

Re: [fpc-pascal] FPC in DOS environment

2007-01-11 Thread Daniel Franzini
On 1/11/07, Tomas Hajny <[EMAIL PROTECTED]> wrote: Daniel Franzini wrote: Hi Daniel, Hi I've had difficulties running FPC apps (probably including the compiler itself) under FreeDOS in the past (whereas it works properly with other DOS implementations like MS-DOS, IBM PC DOS

Re: [fpc-pascal] FPC in DOS environment

2007-01-11 Thread Daniel Franzini
welllike i said before, i'm a volunteer to mantain the port...if Pierre does need some sort of help he can call me On 1/11/07, Jonas Maebe <[EMAIL PROTECTED]> wrote: On 11 jan 2007, at 10:14, Daniël Mantione wrote: > This the situation: > * The Dos port is without a maintainer. > * We are

Re: [fpc-pascal] FPC in DOS environment

2007-01-11 Thread Daniel Franzini
On 1/11/07, Daniël Mantione <[EMAIL PROTECTED]> wrote: This the situation: * The Dos port is without a maintainer. * We are still providing it because many people have need for a Dos version * Bugs in the Dos port are not being fixed so it is of poor quality. well, if so i'm a volunteer to m

Re: [fpc-pascal] low level disk access under Windows

2007-01-11 Thread Daniel Franzini
well i did not wrote any code like this yet...but i do know that the so-called rawwrite tool used for writing images of boot floppies in windowz env is written in delphi (7 at the moment)... since the sources are open you can browse around and see how things get done http://www.chrysocome.net/r

[fpc-pascal] FPC in DOS environment

2007-01-11 Thread Daniel Franzini
Hi all i'm trying to use fpc in a old DOS environment by using FreeDOS inside Virtual PC (guess i should be using vmware) the problem is that i have some low-level code which i would like to port to fpc. FreeDOS came with fpc 2.0.2 which i think is suitable for my needs. 1.) i can't even compil

Re: [fpc-pascal] Lazarus and FPC integration

2005-10-30 Thread Daniel Franzini
On 10/29/05, David Emerson <[EMAIL PROTECTED]> wrote: I think the time has come to integrate (the installations of) FPC and Lazarus more fully. I'll first use myself as an example as to why; then I'll present the reasons I suspect such an integration has not already taken place, and suggest an impl

Re: [fpc-pascal] Status of Lazarus

2005-10-18 Thread Daniel Franzini
RS232 is a standard for serial communications. It sets up voltage levels for logical 0 and 1, timming and waveforms that devices should provide to receive/transmit data. A few weeks ago i built up and got worked a simple RS232 device: a (old) terminal connected to the pc just for sending and receiv

Re: [fpc-pascal] Pointers

2005-07-28 Thread Daniel Franzini
On 7/28/05, Leonhard Holz <[EMAIL PROTECTED]> wrote: > Hello, > > If you compile a win32-program you will have a total virtual memory, > that means that your pointer values don't have anything to do with the > physical ram. A pointer associated to $a actually points to nowhere. > ok...thanks

[fpc-pascal] Pointers

2005-07-27 Thread Daniel Franzini
no, i didn't...but it worked and the program did compiled...now, it shows the following message Runtime error 216 at $00401034 $00401034 but i think that this is some windows (2000) issue not FPC one...so i ask: is there any way of running these simple examples or i will just have to set up som

[fpc-pascal] Pointers

2005-07-27 Thread Daniel Franzini
Hi everyone I'm just trying to compile and execute a simple example from a graphics programming tutorial under FPC. Here is the code PROGRAM PixelExample; {$MODE TP}