Changes between Version 94 and Version 95 of FAQ


Ignore:
Timestamp:
Feb 23, 2012, 4:03:46 PM (12 years ago)
Author:
Peter Baumann
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • FAQ

    v94 v95  
    112112=== I get syntax error ''unexpected name'' when using a floating point number ===
    113113
    114  * Floating point numbers must haev a leading zero, for example; "0.9" instead of ".9".
     114 * Floating point numbers must have a leading zero, for example; "0.9" instead of ".9".
    115115
    116116=== My query which uses ''log'' doesn't work ===
     
    123123for c in (rgb) return count(c.0 = 0)
    124124}}}
    125  '''''Solution''''' : Add 1 to the input:
     125 '''''Solution''''' (depending on your overall formula): Add 1 to the input:
    126126{{{
    127127for c in (rgb) return encode(log(c.0+1), "jpeg")
     
    167167If I send the query ''select max_cells(c.0) from rgb as c'' via command line (rasql utility), then the result is 255 as expected; if I send this query via RasJ, then the result is -1.
    168168
    169  * Java does not have an 8-bit unsigned data type. Byte is a signed 8 bit and hence 255 is represented as -1. What you can do is to transform bytes to char by adding 2^8 if the 2^7 bit is set. Tested, works.
     169 * Java does not have an 8-bit unsigned data type. Byte is a signed 8 bit and hence 255 is represented as -1. What you can do is to transform bytes to char by adding 2^8^ if the 2^7^ bit is set. Tested, works.
    170170
    171171=== I get class version incompatibility error messages ===