Re: error?

new topic     » goto parent     » topic index » view thread      » older message » newer message

On  0, Kat <kat at kogeijin.com> wrote:
> 
> Ok, if 
> decimalcount = 1
> (the debug screen says it is 1)
> then shouldn't this line crash?:
> 
>    resultnum = resultnum[1..decimalcount-1] & "." & 
> resultnum[decimalcount..length(resultnum)]
> 
> since it is the same as:
> resultnum[1..0] 
> ?
> 
> Kat
> 

No.

resultnum[1..0] is the empty sequence {}

   resultnum = resultnum[1..decimalcount-1] & "." & 
resultnum[decimalcount..length(resultnum)]

is the same as

   resultnum = resultnum[1..0] & "." & 
resultnum[1..length(resultnum)]

jbrown

Linux User:190064
Linux Machine:84163


--

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu