Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 :

x=11.22;
printf("%2.2f",x);

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
(%x.yf).

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More SQLServer Errors Interview Questions

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

0 Answers  


What are row constructors?

1 Answers  


Is the company liable to deduct professional tax of directors?

1 Answers  


What is the meaning of lock escalation and why/how to stop this?

0 Answers  


When do you get "getwmicomexception"?

0 Answers  


I entered the data in SQL toad version 9.0.1 in English and Arabic language but when i do the query i get the data in Arabic language with (??? question mark) ,please your support.

0 Answers  


What severity level errors are managed in TRY-CATCH block?

0 Answers  


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

5 Answers   Reliance Communications, Wipro,


today's peformance is less than yesturday.it took 1 mint and today's performance is 7 mints.guys can anyone answer to mu question in sql

0 Answers  


What are the required/mandatory parameters that have to be passed with RAISEERROR statement?

1 Answers  


I have table name'temp' in that I wanted to add some partial data for a particular column name 'policyno' where data is existing in that column. Ex.Policyno like 'R-KT-SK- EA-134526' like 100 records. In that 100 records some policynos are just like 134527 I mean with out prefix like'R-KT-SK-EA-' now I wanted add this prefix as 'R-KT-SK- EA-134527' for some 50 records. How can I add partial data?

4 Answers   Syncfusion, TCS,


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

1 Answers  


Categories