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

He-he...

Because
int remainder= (int)(Math.DivRem(MaxValue, 2, out remainder));
Right is:

Math.DivRem(MaxValue, 2, out remainder)
RectangleF[] fillRectangles = new RectangleF[(int)(MaxValue / 2) +
remainder];

Distraction on last degree and hurly-burly...

:-)

Sep 20 '07 #1
2 1124
Hi,

Please use a more descriptive subject next time, I though this was SPAM,
only when I saw your other post I realized you were "real"

"Alexander Gorbylev" <ag*****@hotmail.com.nospamwrote in message
news:e%******************@TK2MSFTNGP02.phx.gbl...
Because
>int remainder= (int)(Math.DivRem(MaxValue, 2, out remainder));

Right is:

Math.DivRem(MaxValue, 2, out remainder)
RectangleF[] fillRectangles = new RectangleF[(int)(MaxValue / 2) +
remainder];

Distraction on last degree and hurly-burly...

:-)

Sep 20 '07 #2
Alexander Gorbylev wrote:
Because
int remainder= (int)(Math.DivRem(MaxValue, 2, out remainder));

Right is:

Math.DivRem(MaxValue, 2, out remainder)
RectangleF[] fillRectangles = new RectangleF[(int)(MaxValue / 2) +
remainder];

Distraction on last degree and hurly-burly...
WHy not use '%'? Makes the code more clearer than a call to DivRem,
which does practically the same.

FB

--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Sep 21 '07 #3

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

Similar topics

31
by: Brynn | last post by:
I want to thank the person that sent the nasty messages to my contact.asp test page ... you have inspired me !!! I have now added a bad_words filter both to my JSValidation script (going up on...
4
by: Alexander Bolotnov | last post by:
I am trying to read xhtml spec and use one of its examples about css2 in xhtml. The example on the PDF paper with internal styles defenition works just fine. When I try to use an external file...
33
by: Todd | last post by:
OK, I created a .htm page within a new Web solution: -------------------------------------------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head>...
4
by: Mike Cooper | last post by:
There is something about inherited classes I evidently don't know... I wrote the following class: Class Class1 inherits System.Windows.Forms.DataGridTextBoxColumn End Class There is...
1
by: pipehappy | last post by:
Hello everyone: I came across the module ConfigParser and can use it correctly. import ConfigParser fp = open('test.cfg','w+') config = ConfigParser.ConfigParser() config.readfp(fp)...
10
by: javuchi | last post by:
I just want to share some code with you, and have some comments and improvements if you want. This header file allocates and add and delete items of any kind of data from a very fast array: ...
3
by: brucehere | last post by:
hi all. sounds like a complicated one, but i am using e107, so alot of the php code has been written out, but im looking into just putting a straight: <?php echo(rand(1,5)); ?> into this code (i...
17
by: Peter Anthony | last post by:
Can the 3.5 version of .NET Framework (currently Beta 2) be installed on pre-Vista machines? Or is it Vista-only? And, why doesn't .NET Framework come pre-installed with the operating system? I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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?

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.