2 Replies Latest reply: Dec 2, 2013 6:59 AM by 979801 RSS

    Int data type in oracle forms using pl/sql

    979801

      Hello experts,

                           I am new in oracle forms.i am using oracle forms 11g with weblogic server 10.3.5 at windows 7.I have problem with the int data type in oracle forms.I have

      declare

          a int;

          b int;

          c int;

      begin

          a:=10;

          b:=4;

          c:=(a/b);

         

          :BL.OUT:=to_char(c);

          end;

       

       

      Here I am supposed to get the value of c is 2(integer part only).but I am getting 3 in place of 2.I did not want to auto round off this.How can i get the value of c is 2 only.

      regards

      aaditya