Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

when i save float data value 11.22 but this see in table
11.220000004758456 type ? how to save only two decimal point.

when i save float data value 11.22 but this see in table 11.220000004758456 type ? how to save onl..

Answer / guest

if u put 11.22 in a variable x, try this :


2.2f specifies that ,it will print exactly 2 digits to the
left of decimal point and 2 digits to the right of the decimal
point.You can use any number according to ur requirement ,like

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More SQLServer Errors Interview Questions

java.sql.SQLException:Invalid state, the statement object is closed Hai all i got this error when i am multiple times referesh web page

0 Answers   HCL,

write a database figure to implement the master detained relationship.

0 Answers  

Hi, I am trying to encode data from flatfile and then to decode the encoded data to original form. Procedures that I followed:- 1. Encoded the field 'A_ID' using AES_ENCRYPT(A_ID,'abd') in the expression transformation. The A_ID got encoded in the output table(oracle) 2. To decode this back I used AES_DECRYPT(A_ID,'abd'). But after executing the workflow, I am not getting any data in output. can anybody tell me how to decrypt the encoded data back to original form ??

0 Answers  

what is meant by write off and write on in sap?

5 Answers   Reliance Communications, Wipro,

How to solve -805 error i.e. Bind issue. There are two conditions- 1) If you have access to the database table 2) If you don't have access to the table

0 Answers  

hp asking for replication floppy to do reinstall 25254 server assistant

0 Answers  

On which table the SSIS SQL Server logs are stored?

1 Answers  

In one table there is 10 records without id num,without primary key and it is not sorted then how to extract last 6 record from table?

4 Answers  

Difference between Bookmark lookup & RID lookup?

1 Answers  

i have created ODBC through Data sources and tests completed sucessfully. when i am Trying to connect SQL Server through ODBC (ODBC :Oracle Open Client Adapter for ODBC Microsoft SQL Server 09.00.3054) unable to Connect to SQL*Plus: Release it is given following error-message . Error: ORA-03121: NO interface driver connected- function not performed.

0 Answers   Investment Bank,

How many types of internal joins are there in SQL Server?

0 Answers  

What is SCD (Slowly Changing Dimensions)? What are its types?

0 Answers