[ANN] This Week in LiveCode 259

2021-03-22 Thread panagiotis merakos via use-livecode
Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #259 here: http://bit.ly/3tY74Qj This is a weekly newsletter about LiveCode, focussing on what's been going on in and around

Re: LC Server - Check for Screen size?

2021-03-22 Thread scott--- via use-livecode
Matthias, thank you so much for the complete solution. I’m such a beginner with LC server (and not even a beginner at JS) that your explanation was what I needed. -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email

Re: numberformat question

2021-03-22 Thread Craig Newman via use-livecode
Check out this thread in the forum: https://forums.livecode.com/viewtopic.php?f=7=25132=130985=longadd#p130985 Craig > On Mar 21, 2021, at 7:34 AM, jbv via use-livecode > wrote: > > Paul, Sean, > > Thank you both

What is the easiest way to add another snapshot from the same rect to the same PDF file?

2021-03-22 Thread William de Smet via use-livecode
Hi there, In an existing iOS app I do this: --- export snapshot from grc "printmarge" to tPDF as PNG put specialFolderPath("documents") & "/file.pdf" into tFilePath set the printPaperOrientation to "portrait" set the printMargins to 36,72,36,72 open printing to PDF tFilePath print this cd from

Re: numberformat question

2021-03-22 Thread jbv via use-livecode
Le 2021-03-22 12:14, John Balgenorth via use-livecode a écrit : You might be able to get the info by running your javascript from a shell command. Here is a link that might be of help; https://stackoverflow.com/questions/12659778/is-it-possible-to-run-javascript-files-from-the-command-line

Re: numberformat question

2021-03-22 Thread jbv via use-livecode
Hi Craig, Thank you for the link, but it doesn't help much : bigDivide(-0.007347880794884118999,10) returns 0 , -0.01 what I'm actually trying to do is to transpose in LC an algo for solving cubic equations that runs perfectly in javascript. So my solution will finally be to

Re: numberformat question

2021-03-22 Thread Sean Cole (Pi) via use-livecode
JS should use exactly the same standard as LC https://www.avioconsulting.com/blog/overcoming-javascript-numeric-precision-issues 2^53, same in JS as LC. IEEE 754 Sean On Mon, 22 Mar 2021 at 16:14, John Balgenorth via use-livecode < use-livecode@lists.runrev.com> wrote: > You might be able to

Re: numberformat question

2021-03-22 Thread jbv via use-livecode
Le 2021-03-22 12:03, jbv via use-livecode a écrit : Hi Craig, Thank you for the link, but it doesn't help much : bigDivide(-0.007347880794884118999,10) returns 0 , -0.01 Ooops, I just realized that I forgot to add set numberformat to "0.##" at

Re: numberformat question

2021-03-22 Thread John Balgenorth via use-livecode
You might be able to get the info by running your javascript from a shell command. Here is a link that might be of help; https://stackoverflow.com/questions/12659778/is-it-possible-to-run-javascript-files-from-the-command-line JB > On Mar 22, 2021, at 9:05 AM, jbv via use-livecode > wrote:

Re: LC Bug: Copying an Image fails

2021-03-22 Thread Bob Sneidar via use-livecode
+1 On Mar 19, 2021, at 9:55 PM, Curry Kenworthy via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: Bob: > MS Office copy operations are notoriously problematic. > Microsoft maintains their own clipboard format, so that when > switching to another product the clipboard must be

Re: numberformat question

2021-03-22 Thread Mark Wieder via use-livecode
On 3/22/21 9:39 AM, Sean Cole (Pi) via use-livecode wrote: JS should use exactly the same standard as LC https://www.avioconsulting.com/blog/overcoming-javascript-numeric-precision-issues 2^53, same in JS as LC. IEEE 754 Right. To get any more precision you'll have to stringify the

Re: numberformat question

2021-03-22 Thread Bob Sneidar via use-livecode
The ingenuity of people on this list never ceases to amaze me. Bob S > On Mar 22, 2021, at 6:41 AM, Craig Newman via use-livecode > wrote: > > Check out this thread in the forum: > > https://forums.livecode.com/viewtopic.php?f=7=25132=130985=longadd#p130985 > >