Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 12:46 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: parseInt Question
PostPosted: August 28th, 2013, 3:02 pm 
Offline

Joined: May 24th, 2007, 11:02 am
Posts: 132
Location: UK - Wales - Ceredigion
Opus: illuminatus > Evolution
OS: Windows 10 Pro
System: i7 8GB RAM
Does anyone know why opus can handle..
parseInt('FFFF',16) = 65535
but not
parseInt('FFFFF',16) = 1.04858e+006


Top
 Profile Visit website  
 
 Post subject: Re: parseInt Question
PostPosted: August 28th, 2013, 5:43 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
um - it's not it's returning 1048575 when I test it :-?

Perhaps it's the context?

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: parseInt Question
PostPosted: August 29th, 2013, 10:05 am 
Offline

Joined: May 24th, 2007, 11:02 am
Posts: 132
Location: UK - Wales - Ceredigion
Opus: illuminatus > Evolution
OS: Windows 10 Pro
System: i7 8GB RAM
Very strange. I wonder if it's memory related. Is it the same with 9xF:
parseInt('FFFFFFFFF',16) I get 6.871947674e+010
In JavaScript I can get to 18 before it does that:
http://jsfiddle.net/hq8d9/1/


Top
 Profile Visit website  
 
 Post subject: Re: parseInt Question
PostPosted: August 29th, 2013, 1:31 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Yes, I too get scientific notion at that point.

Are you really running 8.06?

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: parseInt Question
PostPosted: August 29th, 2013, 3:10 pm 
Offline

Joined: May 24th, 2007, 11:02 am
Posts: 132
Location: UK - Wales - Ceredigion
Opus: illuminatus > Evolution
OS: Windows 10 Pro
System: i7 8GB RAM
ok, thanks for testing.

I've updated my profile too.


Top
 Profile Visit website  
 
 Post subject: Re: parseInt Question
PostPosted: August 31st, 2013, 11:40 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
jezjones29 wrote:
Does anyone know why opus can handle..
parseInt('FFFF',16) = 65535
but not
parseInt('FFFFF',16) = 1.04858e+006

I guess good if that issue can be resolved in the opus program.

Meanwhile if you need it, here is a workaround.
Code:
testofParseint = String.format("32.0",parseInt('FFFFFFFFF',16) )
//result is:    68719476735
//use whatever number of digits you think large enough, leading zeroes do not display at least for hex base
Currently, OpusPro v7.06

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group