according to the user manual
version() and version_num() will return OpenSCAD version number.
The version() function will return the OpenSCAD version as a vector,
e.g. [2011, 09, 23]
The version_num() function will return the OpenSCAD version as a number,
e.g. 20110923
but when I try using them I only gets zeros.
echo(version());
echo(version_num());
x = version(); echo(x);
y = version_num(); echo(y);
results:
ECHO: [0, 0, 0]
ECHO: 0
ECHO: [0, 0, 0]
ECHO: 0
What am I missing?
--
View this message in context: http://forum.openscad.org/version-function-tp14055.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
I don't know, I get this:
ECHO: [2015, 5, 16]
ECHO: 2.01505e+007
ECHO: [2015, 5, 16]
ECHO: 2.01505e+007
You must have a bad build.
It doesn't seem correct that echo uses scientific notation when natural
notation is shorter and more precise.
On 4 October 2015 at 16:12, L Boyd lboyd@frontiernet.net wrote:
according to the user manual
version() and version_num() will return OpenSCAD version number.
The version() function will return the OpenSCAD version as a vector,
e.g. [2011, 09, 23]
The version_num() function will return the OpenSCAD version as a
number,
e.g. 20110923
but when I try using them I only gets zeros.
echo(version());
echo(version_num());
x = version(); echo(x);
y = version_num(); echo(y);
results:
ECHO: [0, 0, 0]
ECHO: 0
ECHO: [0, 0, 0]
ECHO: 0
What am I missing?
--
View this message in context:
http://forum.openscad.org/version-function-tp14055.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
On 10/04/2015 05:12 PM, L Boyd wrote:
version() and version_num() will return OpenSCAD version number.
[...]
but when I try using them I only gets zeros.
That was a bug not long ago:
https://github.com/openscad/openscad/issues/1329
Works for me with the latest version from github.
ciao,
Torsten.
On Oct 4, 2015, at 11:50 AM, Torsten Paul Torsten.Paul@gmx.de wrote:
On 10/04/2015 05:12 PM, L Boyd wrote:
version() and version_num() will return OpenSCAD version number.
[...]
but when I try using them I only gets zeros.
That was a bug not long ago:
https://github.com/openscad/openscad/issues/1329
Ouch, forgot about that. We should push 2015.03-2 out soon.
-Marius
in the docs it says:
But it really comes back in scientific notation. To me that is a bug. minor
one, but one none-the-less.
Jerry
--
Extra Ham Operator: K7AZJ
Registered Linux User: 275424
Raspberry Pi and Arduino developer
The most exciting phrase to hear in science - the one that heralds new
discoveries - is not "Eureka!" but "That's funny...".- Isaac. Asimov
I
*f you give someone a program, you will frustrate them for a day; if you
teach them how to program, you will frustrate them for a lifetime. *-
Anonymous
If writing good code requires very little comments, then writing really
excellent code requires no comments at all!- Ken Thompson
On Sun, Oct 4, 2015 at 9:19 AM, Marius Kintel marius@kintel.net wrote:
On Oct 4, 2015, at 11:50 AM, Torsten Paul Torsten.Paul@gmx.de wrote:
On 10/04/2015 05:12 PM, L Boyd wrote:
version() and version_num() will return OpenSCAD version number.
[...]
but when I try using them I only gets zeros.
That was a bug not long ago:
https://github.com/openscad/openscad/issues/1329
Ouch, forgot about that. We should push 2015.03-2 out soon.
-Marius
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
On 10/04/2015 09:36 PM, Jerry Davis wrote:
in the docs it says:
- The version_num() function will return the OpenSCAD version as a
number, e.g. 20110923
But it really comes back in scientific notation. To me that is a bug. minor
one, but one none-the-less.
Not really, version_num() does return the correct value. How it's printed
with echo() is a different matter.
It could be argued that means for specific formatting are missing, though.
ciao,
Torsten.
Exactly, Paul.
OpenSCAD limit the print to 6 significant digits which is wrong in the case of version_num() that requires 7 digits.
My $0.02,
Jean-Paul
AC9GH
On Oct 4, 2015, at 3:47 PM, Torsten Paul Torsten.Paul@gmx.de wrote:
On 10/04/2015 09:36 PM, Jerry Davis wrote:
in the docs it says:
But it really comes back in scientific notation. To me that is a bug. minor
one, but one none-the-less.
Not really, version_num() does return the correct value. How it's printed
with echo() is a different matter.
It could be argued that means for specific formatting are missing, though.
ciao,
Torsten.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
I definitely think it would be good to release versions every 3-4 months, the
last release was from 6 months ago perhaps and i have to install Ubuntu to
compile the sources, i haven't had the time to think even on what partition
and with which boot manager i will have ubuntu on pc. even if you have any
unofficial releases, you can post a link to a .zip file here i will jump on
it.
--
View this message in context: http://forum.openscad.org/version-function-tp14055p14069.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
and with which boot manager i will have ubuntu on pc. even if you have any
unofficial releases, you can post a link to a .zip file here i will jump on
it.
You can always just track the nightly build on Ubuntu. Those are actually
built after every check-in to the master branch on github.
The packages are designed to be installable in parallel to the official
distribution packages (mainly tested on Debian/Ubuntu). So if there's
an issue with the nightly build, the release version is still available.
Windows Snapshot builds are not automatic, I'm only building those if there's
some important change or a specific request.
ciao,
Torsten.