Re: Should to_number return a sequence?

new topic     » goto parent     » topic index » view thread      » older message » newer message
petelomax said...

I'll also suggest:

 
        if equal(c, '.') and found_dot then  
            return 0  
        end if  
  
        if equal(c, '.') then   
            found_dot = 1  

==>

 
        if equal(c, '.') then   
            if found_dot then return 0 end if  
            found_dot = 1  

Last week I would have naturally wrote my "if" block the way you're suggesting. I'm trying something new this week. https://www.youtube.com/watch?v=CFRhGnuXG-4

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

Search



Quick Links

User menu

Not signed in.

Misc Menu