Found an issue in SpiderBasic ? Please report it here !
falsam
 
Posts: 253
Joined: Mon May 05, 2014 9:49 pm
Location: France

[Done] String to integer

by falsam Mon Jan 29, 2018 6:06 pm

■ Version 2.20
Code: Select all
Value.s = "11677721500000255"

Debug Value
Debug Val(Value)
Debug wrote:11677721500000255
11677721500000256
With PureBasic no bug
Last edited by falsam on Thu Mar 01, 2018 10:36 am, edited 1 time in total.
➽ Windows 10 - JDK 1.8 - SB 2.20 - Android 5.5
Mood
http://falsam.com

Sorry for my poor english
firace
 
Posts: 12
Joined: Tue Jan 02, 2018 6:59 pm

Re: String to integer

by firace Wed Jan 31, 2018 7:48 pm

Confirmed here.
User avatar
T4r4ntul4
 
Posts: 117
Joined: Wed May 21, 2014 1:57 pm
Location: Netherlands

Re: String to integer

by T4r4ntul4 Wed Jan 31, 2018 11:16 pm

Apparently 16 numbers is the max, try anything after the 16th number and it will be a zero.
Fred
Site Admin
 
Posts: 1013
Joined: Mon Feb 24, 2014 10:51 am

Re: String to integer

by Fred Thu Mar 01, 2018 8:34 am

Javascript integer limit is 2^53, you probably hit this.
falsam
 
Posts: 253
Joined: Mon May 05, 2014 9:49 pm
Location: France

Re: String to integer

by falsam Thu Mar 01, 2018 10:36 am

Ok [Done] ;)
➽ Windows 10 - JDK 1.8 - SB 2.20 - Android 5.5
Mood
http://falsam.com

Sorry for my poor english
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 1 guest