473,387 Members | 1,497 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,387 software developers and data experts.

How to control a decimal place in the program

This a question for my computer science class. How do you control a decimal in a program
Feb 17 '14 #1
1 1336
bvdet
2,851 Expert Mod 2GB
That's a vague question. Can you be more specific? Do you mean printed output or binary floating point arithmetic?
Feb 17 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: martin | last post by:
Hi, I am having difficulty trimming any traling 0's from my decimal numbers. I store then in the database to 2 decimal places. This means that when they come back to my application they still...
2
by: Andrew | last post by:
Hello, friends, I have a couple of web user controls, and I put it in my .net web page. But, they alway went to the top of the design window, no matter how I dragged-dropped them. (looks silly,...
1
by: Ken | last post by:
HI all I would like to round up a double number, for example, 100.689 and round up to 100.6 i know i can do it with Round function. However, it doesn't show the any decimal place if the number...
0
by: pomeroymiles | last post by:
I have a pivotchart which I cause to take a huge list of people's test percentiles and calculate the average for each year. I then display the average above each bar. The problem is that there are...
3
by: flickimp | last post by:
Hi Got various fields in T-SQL where a decimal point and a zero follows each value: ie: 46.0 54.0 234.0
3
by: George Eapen | last post by:
Hi all, i want to check whether a value entered into a specific html field is numeric as well as should contain one decimal value.( eg.23 is not accepted..It should be 23.0) i have come up with...
1
by: maharajakecil | last post by:
hello VB expertise. how should i modify my source code if i want change my X and Y value into one decimal place like 1.2,1.3,1.4 and so on. thank for the help. i really appreciate it! Private...
1
by: chinni0719 | last post by:
Can you plz tell me how to truncate zeros after decimal the case is like this round(992.55,0) result =993.00 round(993.888) result = 994.000
5
by: MyWaterloo | last post by:
I need to change the decimal value in one of my databases. Currently my company uses an ID system with nice whole numbers, i.e. no decimal numbers. Now my boss has this grand scheme to start using...
0
by: jrworsham | last post by:
I just spent a day and a half searching forums for this solution and it does not look like it is out there yet, so I am sharing. In access you can specify the amount of decimal places a form...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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,...

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.