I have data in the column '4.00504572690003'

when i use
select round(4.00504572690003, 2)

it gives 4.01000000000000


How can i achieve 4.00 from the same.

I tried a lot but didint get.

I guess you need to round(4.00504572690003,0). If you want the 2 decimals is another topic (can be done from the gui or you can stick this in a numeric var with 2 decimals)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.