Float type problem helppppppppp

I have a jsp page, which retrieves values from a html page, my problem is that
i can insert the values in database, but the problem is that it does not insert the flot type values...
like 21.21, 242.52. It shows only 21,242
it does not shows in float type.
html form:
<input type="text" name="code" size="5" maxlength="5">
<input type="text" name="Description" size="65">
<input type="text" name="DrAmount" size="12" >
<input type="text" name="CrAmount" size="12" >
<SELECT name="type">
<option value="" selected></option>
<option VALUE="C">C</option>
<option VALUE="O">O</option>
<option VALUE="OI">OI</option>
<option VALUE="OR">OR</option>
<option VALUE="S">S</option>
<option VALUE="SB">SB</option>
<option VALUE="SG">SG</option></select>
<input name="pct" type="text" size="6" maxlength="5" >
jsp page:
<html>
<head>
<%@ page
     import = "java.io.*"
     import = "java.lang.*"
     import = "java.sql.*"
%>
<title></title>
</head>
<body>
<h1></h1>
<%
     String Code,Description,Dr_Amount,Cr_Amount,Pct,Type, sql1 ;
     ResultSet results;
     PreparedStatement sql;
     try
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          Connection conn=DriverManager.getConnection("jdbc:odbc:pf","scott","ttlscott");
          try
               int gl_code;
               Float db_amt,cr_amt,gl_pct;
               String gl_descr, gl_type;
               boolean     doneheading = false;
Statement s=conn.createStatement();
Code = request.getParameter("code");
Description = request.getParameter("Description");
Dr_Amount=request.getParameter("DrAmount");               
Cr_Amount=request.getParameter("CrAmount");
Type = request.getParameter("type");
Pct=request.getParameter("pct");
PreparedStatement pstmt = conn.prepareStatement(
("INSERT INTO gl_mast VALUES (?, ?, ?, ?, ?,?)"));
pstmt.setInt(1,Integer.parseInt(request.getParameter("Code")));
pstmt.setString(2, request.getParameter("Description"));
pstmt.setFloat(3,Float.parseFloat(request.getParameter("Dr_Amount")));
pstmt.setFloat(4,Float.parseFloat(request.getParameter("Cr_Amount")));
pstmt.setString(5, request.getParameter("Type"));
pstmt.setFloat(6,Float.parseFloat(request.getParameter("Pct")));
pstmt.executeUpdate();
               sql = conn.prepareStatement("SELECT * FROM gl_mast WHERE gl_code = '" + Code + "'");
               results = sql.executeQuery();
               while(results.next())
                    if(! doneheading)
                         out.println("<table border=2>");
                         doneheading = true;
gl_code = results.getInt("gl_code");
gl_descr = results.getString("gl_descr");
db_amt = results.getFloat("db_amt");
cr_amt = results.getFloat("cr_amt");
gl_type = results.getString("gl_type");
gl_pct = results.getFloat("gl_pct");
                    out.println("<BODY bgColor=blanchedalmond text=#008000 topMargin=0>");
                    out.println("<P align=center><FONT face=Helvetica><FONT color=fuchsia > <BIG>GL MASTER INFORMATION</BIG></FONT></P>");
                    out.println("<P align=center>");
                    out.println("<TABLE align=center border=1 cellPadding=1 cellSpacing=1 width=\"75%\">");
                    out.println("<TR>");
                    out.println("<TD>Code No.</TD>");
                    out.println("<TD>Description</TD>");
                    out.println("<TD>Dr. Amount</TD>");
                    out.println("<TD>Cr. Amount</TD>");
                    out.println("<TD>Type</TD>");
                    out.println("<TD>Percentage</TD></TR>");
                    out.println("<tr><td>" + gl_code);
                    out.println("<td>" + gl_descr);
                    out.println("<td>" + db_amt);
                    out.println("<td>" + cr_amt);
                    out.println("<td>" + gl_type);
                    out.println("<td>" + gl_pct);
               if(doneheading)
                    out.println("</table>");
               else
                    out.println("No matches for " + Code);
          catch (SQLException s)
               out.println("Dupliacte Entry<br>");
     catch (ClassNotFoundException err)
          out.println("Class loading error");
%>
</body>
</html>
error:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 13 in the jsp file: /gl_master/gl_save.jsp
Generated servlet error:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\abhi\org\apache\jsp\gl_005fmaster\gl_005fsave_jsp.java:100: incompatible types
found : float
required: java.lang.Float
db_amt = results.getFloat("db_amt");
^
An error occurred at line: 13 in the jsp file: /gl_master/gl_save.jsp
Generated servlet error:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\abhi\org\apache\jsp\gl_005fmaster\gl_005fsave_jsp.java:101: incompatible types
found : float
required: java.lang.Float
cr_amt = results.getFloat("cr_amt");
^
An error occurred at line: 13 in the jsp file: /gl_master/gl_save.jsp
Generated servlet error:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\abhi\org\apache\jsp\gl_005fmaster\gl_005fsave_jsp.java:103: incompatible types
found : float
required: java.lang.Float
gl_pct = results.getFloat("gl_pct");
^
3 errors
     org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
     org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
     org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:437)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:497)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
     org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.30 logs.
Apache Tomcat/5.0.30

               Float db_amt,cr_amt,gl_pct;
found : float
required: java.lang.Float
db_amt = results.getFloat("db_amt");The messages are self-explainatory. You are having objects of type Float. and the ResultSet.getFloat() would return float.
Cheers
-P

Similar Messages

  • SQL Server 2005 - CDC problem - real / float type

    Dear Sirs,
    I test the functionality of CDC in Business Objects Data Services 4.0 (14.0.1.245).
    I am using SQL Server 2005 Developer Edition.
    I made all the steps in accordance with the Designer Guide.
    I see a table with the changes, I can change the target system using this information  but I have one problem.
    I have a problem with the real / float type.
    If I make changes in the column real / float (in the table), tha I always see the number -999.000000.
    Does anyone know how to deal with thie bug?
    Best regards,
    Michal

    Sounds very much like a bug to me. I have seen these things in the past with regular tables whenever we had an issue around regional settings. Can you change your computer locale and SQL server language to english to proof it is that and keep it as a workaround for now?

  • Type problem with InDesign, especially CC.

    Hi. I'm experiencing a type problem with InDesign, especially CC. When I open a type box, the cursor appears in the top right hand corner. I can correct that by selecting 'range left' but when I paste or type in my copy, the final period of each paragraph appears at the beginning of the last line. This is drivning me up the wall as I can find a way of correcting it.
    Any ideas to solve this problem?
    Thanks

    Are you using a MENA (Middle East North Africa, Hebrew, Arabic, Farsi, …) version? Then restting woul not help.
    If not, you have to create a new document with the same Paragraph, Character and Object Styles (name should be identical) and import them into the other document to overwrite these style oddities.
    If you are working without styles? Create correct new styles and apply them.
    I doubt that resetting preferences will change here anything as paragraph properties from any existing document will not be changed when working with new preferences.

  • Floating keyboard problem

    I have this floating keyboard problem. Is there a fix to this?
    I jail broke my device and I know it's not anything I downloaded after that because none of the things I downloaded have anything to do with mail or photos. This only happens when I try to send a photo through email. Help please!
    Link to pic of problem: http://i252.photobucket.com/albums/hh24/freaktrains/EA41C579-2212-4CCC-912D-6EB0 2D19BB81-2136-000000C6A8F32FCD_zpsa2359318.jpg

    Jailbreaking voids the Apple warranty and also means that you will not get any support from Apple, including from this Apple forum. Jailbreaking can't be discussed in this Apple forum.
      Unauthorized modification of iOS has been a major source of instability, disruption of services, and other issues

  • CS1 and CS2 InDesign file type problems and Tiger

    Dual 2.7GHrz G5, 2GB RAM, OSX 10.4.5
    Previously, InDesign 3 (CS1 version) was installed on this Mac. I needed to install the full CS2 package. Everything installed just fine. The problem I am having is the file type associations. The Mac now sees CS1 InDesign files as Indesign CS2 files. I got info on a file I knew to have been created and saved in InDesign CS1. I changed the "open with:" to InDesign CS and it worked until I hit "Change all". It then reverts back to a CS2 file type. On other sites I found some different things to try like rebuilding or deleting the LaunchServices pref files, checking to see if their was a CFBundleIdentifier, etc. Anyway, what I seem to have found is that Tiger gets confused when the Type and Creator are the same in the info.plist files. Panther, however, does not seem to have this same problem. We have 10+ other G5's of similar hardware specs as the one listed above, running Panther 10.3.9, have CS1 and CS2 installed, and we are not having the same file type problems.
    As a test, I modified the CFBundleIdentifier to be different than the one found in the CS1 info.plist, and it let me "change all" the CS1 files to CS1. Of course, CS2 files could not be associated with CS2 now.
    Is there a fix for this? Or, is there a patch being worked on that will fix this problem? We really need to keep both versions of the software installed, and I don't want to have to rely on users making the decision about what version they are working in.
    Tom

    If Get Info shows both app versions (& it should) as "Open with:" choices, you can at least still set individual docs to open with the preferred version. Instead of having to open Get Info windows, you can do the same thing a bit more easily with the contextual menu that pops up when you right (or CMD) click & hold on a Finder document icon.
    Normally, the "Open with >" choice in this menu is a one time thing, but if you hold down the option key, it changes to "Always Open With >" & makes the new app choice permanent as it opens the doc, all in one step.

  • Extended Content type problem

    Extended Content type problem
    I want to extend the content type 'ExtendDocument' from 'Document'.
    So I use 'Oracle Internet File System Manager' to create a new Class Object named 'EXTENDDOCUMENT', which is extend from 'DOCUMENT', and add a attribute 'EXTENDURL'.
    This Class Object's bean class is 'ifs.beans.ExtendDocument' and server class is 'ifs.server.S_ExtendDocument'.
    I create these 2 java class and put the class files to ORACLE_AS_HOME\ifs\cmsdk\custom_classes directory.
    As I want to set the object type as 'ExtendDocument' when uploading a file which expend name is '*.wmv', so that need to change 2 default value 'ParserLookupByFileExtension' and 'IFS.PARSER.ObjectTypeLookupByFileExtension'
    So I add 'name=wmv, datatype=STRING, value=oracle.ifs.beans.parsers.ClassSelectionParser' to ParserLookupByFileExtension.
    And then add 'name=wmv, datatype=STRING, value=EXTENDDOCUMENT' to IFS.PARSER.ObjectTypeLookupByFileExtension.
    After done above actions, i restart my oracle application.
    I use CUP to upload a test file 'test.wmv' to CMSDK repository, and its type is 'EXTENDDOCUMENT'.
    But if I use FTP or WebStarterApp application to upload 'test.wmv' file to CMSDK repository, then its type is 'DOCUMENT'.
    Why and how to change to make FTP and WebStarterApp application can upload *.wmv file's type as 'EXTENDDOCUMENT'?
    anybody can help me?
    thanks.

    Nirav-P-Thakar wrote:
    FileNameMap  fnmMime        = URLConnection.getFileNameMap ( ) ;
    fnmMime.getContentTypeFor(fileName);
    URLConnection.guessContentTypeFromName(fileName);I have tried out both methods but it returns null when the file is of type MS Office or Open Office.In reply 1 BalusC said..
    "Alternatively you can use ServletContext#getMimeType() for this. It guesses the content type based on the mime mapping as it is been definied in the web.xml of the application server and the webapplication. If it returns null, then you need to add new <mime-mapping> entry to the web.xml."
    I would try doing it this way. Try including entries for the mime mappings in the deployment descriptor of the web application.

  • DWCS3 Float Drop Problem?

    My site passed the Browser compatibility check in DWCS3, however, after launching site online and viewing it on a IE6 PC computer, the home page does not display correctly: the center section drops down. I checked for a potential float drop problem by adding up my widths including margins and padding: Sidebar left is 170 px, main content area is 370 px (this is the area that drops), sidebar right is 180 px = 720 px. The container is 780 width so I don't understand why the center doesn't fit but drops down because there seems to be 60 px left in the overall width to provide plenty of room. The main content area doesn't have a width specified, just a left and right margins (left set at 170 and right set at 180). I didn't try a conditional comment because I am not that familiar with coding. Any suggestions would be helpful. Also, don't understand why this wasn't flagged in the DWCS3 Browser compatibility check when it scanned for IE6. The address is http://www.eastontroop66.org and it's the home page. Thank you!

    My site passed the Browser compatibility check in DWCS3, however, after launching site online and viewing it on a IE6 PC computer, the home page does not display correctly: the center section drops down. I checked for a potential float drop problem by adding up my widths including margins and padding: Sidebar left is 170 px, main content area is 370 px (this is the area that drops), sidebar right is 180 px = 720 px. The container is 780 width so I don't understand why the center doesn't fit but drops down because there seems to be 60 px left in the overall width to provide plenty of room. The main content area doesn't have a width specified, just a left and right margins (left set at 170 and right set at 180). I didn't try a conditional comment because I am not that familiar with coding. Any suggestions would be helpful. Also, don't understand why this wasn't flagged in the DWCS3 Browser compatibility check when it scanned for IE6. The address is http://www.eastontroop66.org and it's the home page. Thank you!

  • "Floating ownership" problem on eSATA DS4600

    I have a Promise DS4600 unit that is hooked up with eSATA. Previously, I used System Preferences to move some user account home directories to this unit since some of them are just gigantic. It's worked great... until...
    ...somehow, this volume has acquired the "floating ownership" problem. The floating ownership problem is where the system shows the currently-logged on user as the owner of every file and directory inside the volume even though "ignore ownership on this volume" has been disabled for quite some time.
    Does anyone have any idea how this happened or how to fix it? I'm trying to avoid a data move/permissions rework because the amount of data is huge (3 terabytes or so) and it would be difficult. I have a feeling there is a setting stuck, but I cannot find any data on it. I know there is a post about this issue on the SuperDuper! blog, but there is no information on how to fix it. They just talk about how they worked around the issue on their application.

    I have a Promise DS4600 unit that is hooked up with eSATA. Previously, I used System Preferences to move some user account home directories to this unit since some of them are just gigantic. It's worked great... until...
    ...somehow, this volume has acquired the "floating ownership" problem. The floating ownership problem is where the system shows the currently-logged on user as the owner of every file and directory inside the volume even though "ignore ownership on this volume" has been disabled for quite some time.
    Does anyone have any idea how this happened or how to fix it? I'm trying to avoid a data move/permissions rework because the amount of data is huge (3 terabytes or so) and it would be difficult. I have a feeling there is a setting stuck, but I cannot find any data on it. I know there is a post about this issue on the SuperDuper! blog, but there is no information on how to fix it. They just talk about how they worked around the issue on their application.

  • Parameters restriction for Float type

    I want to get a value from the user which is Float type from the selection screen. But the parameters statement doesn't allow the float type value. So please suggest me an alternative to this restriction.Please be clear in your reply as I am new to SAP.

    Well, the only alternative I can think off is to use Type P. This will not give you exponentials but will take care of the decimals.
    PARAMETERS  p_var1 TYPE LENGTH 10 DECIMALS 8.

  • Float data type problem!

    Hi ALL,
    I have a problem with float data type. Please tell me how to fix it if you know.
    THANKS!
    Source code:
    class testFloatType {
    public static void main(String args[]) {
    float i = 0.9f, j = 0.8f, k = 0.1f;
    System.out.println("i = " + i);
    System.out.println("j = " + j);
    System.out.println("k = " + k);
    System.out.println("i - j = " + (i - j));
    System.out.println("i - k = " + (i - k));
    Result:
    i = 0.9
    j = 0.8
    k = 0.1
    i - j = 0.099999964
    i - k = 0.79999995

    Hi garazdawi,
    I try to use the double to instead of float, but it still has a bit error!
    Source code:
    class testFloatType {
    public static void main(String args[]) {
    float i = 0.9f, j = 0.8f, k = 0.1f;
    System.out.println("i = " + i);
    System.out.println("j = " + j);
    System.out.println("k = " + k);
    System.out.println("i - j = " + (i - j));
    System.out.println("i - k = " + (i - k));
    double a = 0.9d, b = 0.8d, c = 0.1d;
    System.out.println("a = " + a);
    System.out.println("b = " + b);
    System.out.println("c = " + c);
    System.out.println("a - b = " + (a - b));
    System.out.println("a - c = " + (a - c));
    Result:
    i = 0.9
    j = 0.8
    k = 0.1
    i - j = 0.099999964
    i - k = 0.79999995
    a = 0.9
    b = 0.8
    c = 0.1
    a - b = 0.09999999999999998
    a - c = 0.8

  • Problem with float type display

    I have a float number, after bigger than 1E8,
    it will display as 1E8.
    How can I make it to display at 10000000?
    Thanks

    Hi!
    You may use something like:
    import java.text.*;
    double f = 123456789.9876;
    NumberFormat nf = new DecimalFormat("####.####");
    System.out.println(nf.format(f));
    I believe it is a good idea to use double for such numbers, not float.

  • Data Type Problem

    Hi to all
    I am writing a java basic program. my program is
    public class FirstJava {
         public static void main(String[] args) {
              short a,b,c;
              a=2;
              b=5;
              c=a*b;
              System.out.println(c);
    }But when i am running above program i am getting following error. FirstJava.java:8: possible loss of precision
    found   : int
    required: short
                    c=a*b;
                       ^
    1 error . Really i dont understand whats wrong with my code.
    But when i change my code from c=a*b to a*=a then its working fine. Please help me.
    Another problem, when i am trying to store 07 to a integer as int a=07; then i am getting error like value too large to store. whats wrong here. please help me..

    praveen_nlg wrote:
    Hi to all
    I am writing a java basic program.Great! Which tutorial are you following?
    But when i am running above program i am getting following error. No! You get that error when you are compiling the program. That's an important distinction and you better learn it as early as possible.
    FirstJava.java:8: possible loss of precision
    found   : int
    required: short
    c=a*b;
    ^
    1 errorPretty much all numeric calculations are done with int types in Java (except if they include float/double values).
    So "a*b" will be calculated as an int value. Then you assign it to c, which is a short. The Java compiler just tells you that you might be losing information here.
    There is almost no reason in Java to use short values, simply use int for your whole numbers and you won't run into thisissue.
    Another problem, when i am trying to store 07 to a integer as int a=07; then i am getting error like value too large to store. whats wrong here. please help me..07 should be fine, 08 will break. A leading 0 tells Java that the number is written in [base 8|http://en.wikipedia.org/wiki/Octal]. Don't do that.

  • Fill floating KF problem

    Hello
    In extractor and ODS I have key figure type floating.
    Sometimes extractors return value '0' for this field.
    In such cases, in update rules,   I fill KF using FM CONVERT_TO_LOCAL_CURRENCY.
    Problem is when I read value '4.1' i get '4.099999996E00' in KF instead '4.100000006E00'.
    How to resolve this problem?
    THX
    Adam

    Hi Kumar
    It is not reporting problem but calculating.
    I use this KF to calculate another.
    This small difference give disparity in large values.
    Multiplication 
    1.000.000 x 1,1 = 1.100.000
    but
    1.000.000 x 1,0999999996E+00 = 1.099.999
    I must insert to KF value 1,1000 not 1,099999999.
    THX

  • Float Drop Problem

    I'm having a float drop issue with my layout. I've read
    several articles on this but can't figure it out, because my layout
    isn't just 3 columns.
    Here's the problem:
    *I have a <div> for my logo, floated left, then I have
    a <div> for a banner heading floated right.
    *I then have a top horizontal navbar, also a <div>, no
    floating.
    *below this I have my three columns (side bar-float left,
    contents-float left and right bar-float right).
    The problem is that Dreamweaver is showing a float drop error
    on the navbar div.
    I just don't know what to do to fix this and I've spent
    several days trying to figure it out. I'm using IE6 which is where
    the problem is supposed to occur, but the page displays correctly,
    so I can't actually see the error.
    My web site is not up so I can't provide a link but here is
    some of the code.
    CSS:
    #wrap {
    background: #999966;
    color: #303030;
    margin: 0 auto;
    width: 780px;
    #banner_logo {
    float: left;
    width: 190px;
    height: 100px;
    background-color: #cccc99;
    padding: 10px;
    border-bottom: 3px solid #FFFFFF;
    #banner_text {
    width: 550px;
    float: right;
    height: 100px;
    background-color: #cccc99;
    padding: 10px;
    border-bottom: 3px solid #FFFFFF;
    * html #navbar {
    height: 1px;
    #navbar {
    width: 758px;
    color: #FFFFFF;
    text-decoration: none;
    #navbar ul {
    margin: 5px 0px 5px 5px;
    padding: 0px;
    text-align: center;
    #navbar li {
    list-style-type: none;
    font-size: 8pt;
    padding-right: 50px;
    display: inline;
    HTML:
    <body>
    <div id="wrap">
    <div id="banner_logo"><img
    src="../Images/logo_smaller2.png" alt="logo" width="174"
    height="100" /></div>
    <div id="banner_text">
    <h1 align="center">Attic 2 Basement Home
    Inspections</h1>
    <h2 align="center">905-286-9586</h2>
    <div align="center"><span class="sub_head">Each
    home inspection is performed as if it were our
    own!</span><br />
    <span class="sub_head">Your peace of mind is our
    goal.</span></div>
    </div>
    <div id="navbar"> - HERE'S WHERE THE FLOAT DROP ERROR
    SHOWS UP-
    <ul>
    <li><a
    href="../index.html">Home</a></li>
    <li><a href="../about_us.html">About
    Us</a></li>
    <li><a
    href="../buying_selling.html">Services</a></li>
    <li><a href="../Contact_us.html">Contact
    Us</a></li>
    </ul>
    </div>
    <!-- TemplateBeginEditable name="SideNavBar" -->
    <div id="avmenu">
    <ul>
    <li><a href="#">LINK </a></li>
    </ul>
    </div>
    <!-- TemplateEndEditable --><!--
    TemplateBeginEditable name="SideBar" -->
    <div id="right_side_bar">
    <h3>Book Your Inspection</h3>
    </div>
    <!-- TemplateEndEditable --><!--
    TemplateBeginEditable name="MainContent" -->
    <div id="content">
    <h2>Page Heading Here</h2>
    <p>Content here</p>
    </div>
    </div>
    </body>
    I would appreciate any direction offered!
    Thanks so much,
    Deb

    I'm having a float drop issue with my layout. I've read
    several articles on this but can't figure it out, because my layout
    isn't just 3 columns.
    Here's the problem:
    *I have a <div> for my logo, floated left, then I have
    a <div> for a banner heading floated right.
    *I then have a top horizontal navbar, also a <div>, no
    floating.
    *below this I have my three columns (side bar-float left,
    contents-float left and right bar-float right).
    The problem is that Dreamweaver is showing a float drop error
    on the navbar div.
    I just don't know what to do to fix this and I've spent
    several days trying to figure it out. I'm using IE6 which is where
    the problem is supposed to occur, but the page displays correctly,
    so I can't actually see the error.
    My web site is not up so I can't provide a link but here is
    some of the code.
    CSS:
    #wrap {
    background: #999966;
    color: #303030;
    margin: 0 auto;
    width: 780px;
    #banner_logo {
    float: left;
    width: 190px;
    height: 100px;
    background-color: #cccc99;
    padding: 10px;
    border-bottom: 3px solid #FFFFFF;
    #banner_text {
    width: 550px;
    float: right;
    height: 100px;
    background-color: #cccc99;
    padding: 10px;
    border-bottom: 3px solid #FFFFFF;
    * html #navbar {
    height: 1px;
    #navbar {
    width: 758px;
    color: #FFFFFF;
    text-decoration: none;
    #navbar ul {
    margin: 5px 0px 5px 5px;
    padding: 0px;
    text-align: center;
    #navbar li {
    list-style-type: none;
    font-size: 8pt;
    padding-right: 50px;
    display: inline;
    HTML:
    <body>
    <div id="wrap">
    <div id="banner_logo"><img
    src="../Images/logo_smaller2.png" alt="logo" width="174"
    height="100" /></div>
    <div id="banner_text">
    <h1 align="center">Attic 2 Basement Home
    Inspections</h1>
    <h2 align="center">905-286-9586</h2>
    <div align="center"><span class="sub_head">Each
    home inspection is performed as if it were our
    own!</span><br />
    <span class="sub_head">Your peace of mind is our
    goal.</span></div>
    </div>
    <div id="navbar"> - HERE'S WHERE THE FLOAT DROP ERROR
    SHOWS UP-
    <ul>
    <li><a
    href="../index.html">Home</a></li>
    <li><a href="../about_us.html">About
    Us</a></li>
    <li><a
    href="../buying_selling.html">Services</a></li>
    <li><a href="../Contact_us.html">Contact
    Us</a></li>
    </ul>
    </div>
    <!-- TemplateBeginEditable name="SideNavBar" -->
    <div id="avmenu">
    <ul>
    <li><a href="#">LINK </a></li>
    </ul>
    </div>
    <!-- TemplateEndEditable --><!--
    TemplateBeginEditable name="SideBar" -->
    <div id="right_side_bar">
    <h3>Book Your Inspection</h3>
    </div>
    <!-- TemplateEndEditable --><!--
    TemplateBeginEditable name="MainContent" -->
    <div id="content">
    <h2>Page Heading Here</h2>
    <p>Content here</p>
    </div>
    </div>
    </body>
    I would appreciate any direction offered!
    Thanks so much,
    Deb

  • Floating point problem in method

    When I got a method, like moveTo(float,float), originally, it should be, for example moveTo(30.45f,100.894f). But if I passed an array which id of type float but don't have the 'f' at the back. Does this matter? An Example:
    float x1Points[]=new float[ix.length];
    float y1Points[]=new float[iy.length];
         for(int i=0;i<ix.length;i++){
         x1Points=ix[i]*100000-299900;
         y1Points[i]=iy[i]*1000-101710;
    GeneralPath polygon = new GeneralPath(GeneralPath.WIND_EVEN_ODD);
    polygon.moveTo(x1Points[0], y1Points[0]);//problem here
    for ( int i = 1; i < x1Points.length; i++ ) {
    polygon.lineTo(x1Points[i], y1Points[i]);
    g2d.draw(polygon);

    No, this does not matter.
    The "f" is only for numeric literal values, to indicate that the value is a float, instead of an int or double (which it is by default).
    For variables, there is no need to specify the type with a postfix letter like the "f", because the type of variables is always known; for example, the compiler already knows that you have an array of floats, so there is no need to tell the compiler again that you want to pass floats to the method.
    Jesper

Maybe you are looking for

  • White macbook 13inch are there are cases that will still fit this computer?

    I have a white macBook 7,1 intel core 2 Duo 2.4 GHz and i need to purchase a case, i know this model is old and discontinued but are there any similar cases that will still fit this computer?

  • "Could not complete the save command because of program error."

    Dear all, I am having problems saving jpegs on Photoshop CS3. I use windows XP professional. I am saving using the save menu (not save as). I am using a saving archive, where folders are within folders. I am trying to save images which have been copy

  • Master data and impact of loads from transaction data

    If I have the following scenario: 1. Load to cube which contains a dimension which has an info object 0CUSTOMER 2. The transaction data is being loaded from a non SAP system and 0CUSTOMER is loaded on a daily basis from SAP system 3. As part of the t

  • BAPI's in FICO module

    Hi,    How can i see all the available BAPI's in FICO module.          Thnaks,          Ram.

  • Xsql and excel

    I am generating excel output from my xsql page. when trying on tomcat environment loaded on windows 2000 OS i get the correct output, while trying the same on Apache on Solaris(UNIX) i get error as "The stylesheet does not contain a document element.