473,396 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Display Integer without decimal

Hi Everyone:

I have a grid view which is bound to dataset from oracle store
proceduer. I have a number filed but it is showing in decimal like
0.0000 or 24.0000 etc. Can someone please tell me how can show o or 24
only without decimal. I tried dataformatstring prorerty of bound field
but no luck.

Thanks in advance.

Pargat

Mar 26 '07 #1
5 13821
Returns the integer portion of a number.

Int(5.3333) returns 5.
<pa**********@gmail.comwrote in message news:11*********************@p77g2000hsh.googlegro ups.com...
Hi Everyone:

I have a grid view which is bound to dataset from oracle store
proceduer. I have a number filed but it is showing in decimal like
0.0000 or 24.0000 etc. Can someone please tell me how can show o or 24
only without decimal. I tried dataformatstring prorerty of bound field
but no luck.

Thanks in advance.

Pargat

Mar 26 '07 #2
<pa**********@gmail.comwrote in message
news:11*********************@p77g2000hsh.googlegro ups.com...
I tried dataformatstring prorerty of bound field but no luck.
You probably forgot to include:

HtmlEncode="false"

in the bound column tag
Mar 26 '07 #3
On Mar 26, 3:47 am, "Mark Rae" <m...@markNOSPAMrae.comwrote:
<pargat.si...@gmail.comwrote in message

news:11*********************@p77g2000hsh.googlegro ups.com...
I tried dataformatstring prorerty of bound field but no luck.

You probably forgot to include:

HtmlEncode="false"

in the bound column tag
Thanks. I am getting an error when i set DataFormatString="{0:D}"
HtmlEncode="false".

Mar 26 '07 #4
On Mar 25, 9:52 pm, "Jon Paal [MSMD]" <Jon[ nospam ]Paal @ everywhere
dot comwrote:
Returns the integer portion of a number.

Int(5.3333) returns 5.

<pargat.si...@gmail.comwrote in messagenews:11*********************@p77g2000hsh.go oglegroups.com...
Hi Everyone:
I have a grid view which is bound to dataset from oracle store
proceduer. I have a number filed but it is showing in decimal like
0.0000 or 24.0000 etc. Can someone please tell me how can show o or 24
only without decimal. I tried dataformatstring prorerty of bound field
but no luck.
Thanks in advance.
Pargat- Hide quoted text -

- Show quoted text -
Thanks. I have replace the SP with to_number.

Mar 26 '07 #5
<pa**********@gmail.comwrote in message
news:11**********************@d57g2000hsg.googlegr oups.com...
On Mar 26, 3:47 am, "Mark Rae" <m...@markNOSPAMrae.comwrote:
><pargat.si...@gmail.comwrote in message

news:11*********************@p77g2000hsh.googlegr oups.com...
I tried dataformatstring prorerty of bound field but no luck.

You probably forgot to include:

HtmlEncode="false"

in the bound column tag

Thanks. I am getting an error when i set DataFormatString="{0:D}"
HtmlEncode="false".
DataFormatString="{0:0}" HtmlEncode="false"
Mar 26 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Peter Blatt | last post by:
Does 5 represent the total numer of digits (including the fractional portion) or only the number of places BEFORE the decimal point? Moreover does the number include the decimal point? Are there...
6
by: Tim Whelan via DotNetMonster.com | last post by:
Hi I am developing an asp.net web application using c# and having trouble trying to display integer values, that I have taken from the database, correctly on my webform textboxes. The values are...
2
by: AMDRIT | last post by:
Hello Everyone, I would like to format the Display Members of a combobox's datasource. Is there a way to apply a format without subclassing the original datasource? For example, given a list of...
33
by: gk245 | last post by:
I mean, anything that follows a 0 is automatically turned into a octal number. I want to have a integer variable that will hold numbers as integers even if they begin with a zero. for example:...
4
by: nate | last post by:
Hey everyone, I am trying to figure out what is the largest integer I can. Lets say for 400 megabytes of memory at my disposal. I have tried a few things c = 2**1000000 d = 2**2000000 print...
11
by: ChrisM | last post by:
Hi Guys, I'm looking for a function that will return the lowest integer that is greater than or equal to a decimal number. eg. 3.1(decimal) returns 4(integer) 3.9(decimal) returns...
9
by: loudking | last post by:
Dear all, I am writing a client-server application and the client should upload a file to the server, then the server should display the content of the file in stdout. Because I have to deal...
6
by: kimiraikkonen | last post by:
Hi, Sorry if this is so basic but i wanted to know the correct way of displaying a value's "only" integer part. I mean; if i declare a value as integer which is actually a decimal number, it...
1
by: vbwire | last post by:
i use vb 6.0 this is my work.. 1. Option Explicit 2. 3.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.