Savage 1,764
Recognized Expert Top Contributor
Hi everyone,
this is questions and comments thread about this article.
If u have any comments or questions please post them here..
Savage
13 1627
If we try to divide 7/2 we will get 3.5
symetrical
asteriks
asterikses
sterp
beetwen "standard" triangle
Basicly
allways
Secound differance
There are lots of typos and misspellings that I assume will get cleaned up.
My main comment is 7/2. The result of 7/2 is 3 and not 3.5. That is, there are three 2's in 7. You can't have half a 2 since integers have no decimal places. If you really want 3.5 you have to start out with 7.0/2.0.
So, integer arithmetic always produces integer results.
There is also the significant figures issue. 3 represents any value between 3 and less than 4. The value 3.5 represents and value betweem 3.5 and less than 3.6. That is, a result is accurate only to the degree of its coarsest component. That is, you cannot make things more accurate by adding decimal places.
The typos (not all of them):
symetrical --> symmetrical
asteriks --> asterisks
asterikses -->asterisks
sterp --> step
beetwen "standard" triangle --> between
Basicly --> Basically
allways --> always
Secound differance -->Second difference
Lastly, what is a standard triangle?? Right, equilateral, isosceles, asymmetrical??
Savage 1,764
Recognized Expert Top Contributor
There are lots of typos and misspellings that I assume will get cleaned up.
My main comment is 7/2. The result of 7/2 is 3 and not 3.5. That is, there are three 2's in 7. You can't have half a 2 since integers have no decimal places. If you really want 3.5 you have to start out with 7.0/2.0.
So, integer arithmetic always produces integer results.
There is also the significant figures issue. 3 represents any value between 3 and less than 4. The value 3.5 represents and value betweem 3.5 and less than 3.6. That is, a result is accurate only to the degree of its coarsest component. That is, you cannot make things more accurate by adding decimal places.
The typos (not all of them):
symetrical --> symmetrical
asteriks --> asterisks
asterikses -->asterisks
sterp --> step
beetwen "standard" triangle --> between
Basicly --> Basically
allways --> always
Secound differance -->Second difference
Lastly, what is a standard triangle?? Right, equilateral, isosceles, asymmetrical??
I know,I have noticed those few minutes after I finished posting post #2,but to late to change them.About this issue: 7/2=3.5,I wasn't trying to say what is resulting integer when compiled using integer arithmetic,I was saying what is true result when u divide those in real life ,what u will get when u divide 7 with 2?About ur last question I meant one isosceles triangle.
Thank u so much for this comment,I really appreciate it.
:D
PS:It's my first article.
Savage
AdrianH 1,251
Recognized Expert Top Contributor
I know,I have noticed those few minutes after I finished posting post #2,but to late to change them.About this issue: 7/2=3.5,I wasn't trying to say what is resulting integer when compiled using integer arithmetic,I was saying what is true result when u divide those in real life ,what u will get when u divide 7 with 2?About ur last question I meant one isosceles triangle.
Thank u so much for this comment,I really appreciate it.
:D
PS:It's my first article.
Savage
Do you have write access to the Editor's forum? I'll move it there if you want?
Adrian
Savage 1,764
Recognized Expert Top Contributor
Do you have write access to the Editor's forum? I'll move it there if you want?
Adrian
I don't know.Jos asked me to.
Is there a way to find it out?
Savage
Savage 1,764
Recognized Expert Top Contributor AdrianH 1,251
Recognized Expert Top Contributor
I don't know.Jos asked me to.
Is there a way to find it out?
Savage
Yeah, try it. ;) I'll move it now.
Adrian
AdrianH 1,251
Recognized Expert Top Contributor
Yeah, try it. ;) I'll move it now.
Adrian
Done.
Adrian
Savage 1,764
Recognized Expert Top Contributor
Yeah, try it. ;) I'll move it now.
Adrian
Nope,I can't edit it.
:(
Savage
AdrianH 1,251
Recognized Expert Top Contributor
Nope,I can't edit it.
:(
Savage
PM Mary, perhaps she can give you rights.
Adrian
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Kim Scarborough |
last post by:
Say I wanted to put a couple lines of asterisks between paragraphs, and have
it stretch the spaces so that it spanned 100% of the text-width, like this:
* * * * * * * *
Is there a way to do this in CSS? I don't want it to line break, just collapse
the spacing between the stars if the window gets narrower.
--
----------------------------------------------------------------------------
|
by: Jon Skeet [C# MVP] |
last post by:
Please excuse the cross-post - I'm pretty sure I've had interest in the
article on all the groups this is posted to.
I've finally managed to finish my article on multi-threading - at least
for the moment. I'd be *very* grateful if people with any interest in
multi-threading would read it (even just bits of it - it's somewhat
long to go through the whole thing!) to check for accuracy,
effectiveness of examples, etc.
Feel free to mail...
|
by: ab12 |
last post by:
I'm trying to write a program in C that gets a shape outlined with asterisks from the user, and returns that shape filled with asterisks. It will also get the coordinates of a point inside the shape from which to start filling. I need to use recursion here. for example, to be clear:
input: (ignore the line, think of that as blank space)
*****
*___*
*****
coordinates are (2,1) /*its an array so numbering will start from 0*/
output...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |