VS 2008 : Dealing With Large Numbers?

Mar 12, 2012

I want a method of dealing with very, very, very big numbers (potentially a million digits). It is very cumbersome to deal with very big numbers in VB, would another language perhaps be better for that?

View 10 Replies


ADVERTISEMENT

2008 - Draw Random Numbers From Comboboxes For Dealing Cards

Jan 23, 2009

I'm trying to make a program that'll play the card game "War". I've started to code the dealing process, but it doesn't seem to be working. I currently have 3 comboboxes on the form each with numbers representing different cards, 1 that contains all the cards to be dealt, 1 that contains the user's cards, and 1 that contains the computer's cards. I plan to just draw random numbers from these comboboxes for the dealing. However, nothing happens when I click the tool-strip button that's supposed to deal the cards. [Code]

View 5 Replies

.net - Dealing With Large Integers?

Apr 19, 2012

So I am making a file crypter so that I can encrypt my VB.NET Application that I am making so that people can't decompile it. I had made this in C# and am transfering it to VB.NET, Everything worked fine in C# but once I had re-written the code in VB.NET i get this error inside of my RC4 Encryption method:

'Arithmetic operation resulted in an overflow.'

The error is occuring here:

Dim t As Int64 = (s(i) + s(j)) Mod 256

This is the same code above in c#:

int t = (s[i] + s[j]) % 256;

Is there anyway to make that calculation with it erroring? And why does it work in C# but not VB.NET?

View 2 Replies

VS 2005 Dealing With Large Datasets?

Sep 20, 2010

I am using a stored procedure to fill a dataset with a large amount of data (47k rows and 8 columns). I am needing to fill two tables with the results of this stored proc.One table will have data representing 47k reps that currently have credit for a transaction. The other table will be a mirror copy of the 1st table with 47k reps that were supposed to get credit for a transaction. This application is going to take credit from one rep. and give the credit to the other rep record in the 2 mirrored datasets. It's taking 30 seconds for the data adapter fill method to return records to my application. I would like to reduce the amount of time it takes for this request to process.

[Code]...

View 8 Replies

VS 2005 Dealing With Large Amount Of Records?

May 21, 2009

I am making an inventory program in which there's an ItemMaster and Sales Form. Currently there are 15000 records of items(increasing daily). I want to display all the items in the sales form so that the user can select an item from the list for billing, and also in the itemmaster so that if the user wants to edit any item then he can select it from the list.

I can make a common list form for both sales and master, but i have to load the data from the database into the list every time the list is displayed(which is taking lot of time), so is there an better way to do it.

View 8 Replies

Dealing With HUGE Numbers

Sep 21, 2009

I've been messing around with prime numbers for a while now, but I now want to use massive numbers, say a few million digits in length. Is there a way of storing and performing mathematical functions with such large numbers? Is it even possible on my home computer? I read on another old thread, something about a big number library, but the links he gave are now dead.

View 4 Replies

Formula Or Convention When Dealing With Inclusive Numbers

Oct 3, 2010

I addressed a meeting and used the following....she worked there for 17 years.I was corrected later that it should have been 16 years.I argued that the first year of this persons employment was 1966 and her last years work was 1982. Therefore 17 years.Does someone have an articulate mathmatic reasoning that explains dealing with inclusive numbers.

View 12 Replies

VS 2008 Count A Large Amount Numbers In Short Time?

Nov 23, 2010

I need to count a large amount numbers in short time.As a result the CPU jumps to 40-60% on 4-core PC.Which is extremely high.I have any idea that will lock up the thread for some time, but not actually slow or reduce the amount of files that are allowed to be counted per a giving time period.

Vb.net
Application.DoEvents()
Threading.Thread.Sleep(1000)

View 9 Replies

How To Add Commas To Large Numbers

Mar 29, 2011

Any simple way to add commas to large numbers (example: instead of "123456789" as my text converted {and loaded into a text box} output of a calculation, I want to see "123,456,789")?

View 11 Replies

Vb6 Xor Large Numbers Not Working

Feb 18, 2012

[Code]...

The loop will run about 3 times then overflow. I guess no matter what u do xor will result in Byte,Integer or Long. CDec(Key) will not work I need a way to bypass this so i can Xor large numbers.

View 1 Replies

Working With Very Large Numbers?

Oct 25, 2010

How can I calculate 2^ 3333 in vb.net it calculates up to 2^ 60 it says infinite for this calculation. Is tehre any way to work with really large numbers?

View 1 Replies

IF Statement Dealing With "between Numbers"?

Mar 14, 2012

I really don't know how to put this in ... but i will do my best. what i am trying to do is basically build a statement that looks at a number and if its between number 1 and number 8 then the output would be " this is class C network " and if the number is between 9 and 16 the output would be " This is Class B Network"and finally if the number is between 17 and 24 the output should be " this is Class A Network"

this is the code that i got it to work except that part i have explained above :

[Code]...

View 2 Replies

Modulus Calculation Of Large Numbers?

Oct 19, 2010

how to get the mod of large numbers? for example: (3214282912345698765432161182 mod 97)

View 10 Replies

Overflow Exception-very Large Numbers?

Jun 22, 2010

This piece of C# code does not produce any overflow exception.wordsize is a constant equal to 32.the x and y can be very big at the computation time. So big that long or decimal even cant hold. But C# handles the problem even the value of the variables exceeds its limits.The computation gives thr right result.(I dont know how it does it)

[Code]...

View 5 Replies

Deal With Incredibly Long (large) Numbers In .net?

Nov 27, 2010

How is it possible to deal with incredibly long (large) numbers in vb.net?I am working on Problem 25 in Project Euler, and my program cannot handle these computations.Is there a data type that can handle thousands of digits?

View 3 Replies

VS 2010 Working With Extremely Large Numbers?

Apr 28, 2011

For example, to calculate this:(22 ^ 29) Mod 57Supposedly there is a way to get around overflows and do these calculations, but I can't find much online. Now, the person who said this was doing VBA in Excel and said that there was about 4 lines of code which could handle the overflow so it wouldn't happen.

View 4 Replies

Create A Program To List A Large Group Of Numbers?

Feb 7, 2011

I am currently trying to create a program to list a large group of numbers for me. My final goal is to have every 2, 3, 4, ..., and 9 digit number containing only "1" "2" and "3". I thought I would go about this by using the following VB.NET program and then copying it into a text editor, and using find & replace to eliminate all other numbers.

Public Class Form1
Dim Start As Integer = 333333333
Dim Counter As Integer = 333333333

[Code].....

it fails due to the massive amount of processing that needs to take place. However, adding the intervals requires a great deal of time for each number to be displayed without any crashes.

Is there some way (in VB.NEt or another language) to get the number list I want in a short (an hour or less) amount of time?

View 7 Replies

Out Of Memory Exception / Parallel.For Loop / Large Numbers?

Nov 27, 2011

I need some guidance on a little program I'm making (one that I thought would take a couple of hours from start to finish, it's been days now ...) that determines all of the proper divisors of any given number up to the maximum value of a UInt32.

View 8 Replies

VS 2008 Dealing With Appearance Of MDI Form

Jan 14, 2010

I have a main form which contains a few buttons...some of those buttons open up smaller forms...there is also a button for each of those smaller forms, which should let me bring the chosen form to the front and give it focus...basically like the tabs in your task bar let you switch between which program you are using...but I'm having trouble with this...I need to click the button 2 times before the form I want comes to the front...the first click removes focus from the currently activated form the second click then moves the form I want to the front.I need this to happen in one click..I[code] figured out the exact cause of the problem.it's due to the fact that the first click doesn't actually take effect since the child form has focus...so the first click actually just transfers focus to the main form...the second click does what it should.I knew it was going to be extremely obvious.so the question now becomes...how can I overcome this if that is possible at all...I know I've seen applications where I can still activate functions of the parent form in one click even if I have a child form open and focused.And it's basically what I need...it does what I want and lets me switch between child forms in one click...but it stuffs up the entire look of my parent form...the layout and colors get wacky...the transparency of certain things don't seem to work and my background image is gone..

View 7 Replies

VS 2008 Making A Program Dealing With Change?

Oct 11, 2011

Write a program that makes change for amounts less than one dollar. Input to the program should be an integer less than 100. Output should be the original amount together with the proper set of coins that add up to that number. The program should produce change consisting of the minimum amount of coins possible. The output should be printed in such a way as to avoid unnecessary amounts.For example:

32 cents should be printed as:32 requires 1 quarter, 1 nickel, and 2 cents Rather than� 32 requires 1 quarter(s), 0 dime(s), 1 nickel(s), and 2 cent(s)

View 7 Replies

VS 2008 - Class With Attribute / Dealing With DBNull Values

Dec 22, 2010

I wonder, what is the most elegant way of dealing with the dbnull situation. I have a class, with attribute, let's say: "End_Date", which is being read from database. Type of this variant should be date, but as it's the "End_Date", there might be the situation that something haven't ended yet, and in the database in this field I have a null value.

Right now a deal with the problem this way:
Dim mEnd_Date
...
Public Property End_Date ()
Get
End_Date = mEnd_Date
End Get
Set(ByVal value)
mEnd_Date = value
End Set
End Property
But I am not sure if that's a good way as I don't declare variants as any datatype?

View 5 Replies

VS 2008 Use Queries And Dealing With Databases Using LINQ Or SQl / Which Is Better To Start

Jul 6, 2010

I will start a new project, use the queries and dealing with databases using LINQ or SQl ,Which is better to start ???

View 4 Replies

Shape Of Really Large Characters Such As Numbers And Alphabetic Characters

May 9, 2011

With the shape of really large characters such as numbers and alphabetic characters + others, is there a way to get that shape as a REGION please?Imagine a really fat snake forming the letter S or two rectangles placed together to form a large letter L or a T like the shapes in TETRIS.

1) Does anyone know of anything in VB.Net that can translate such shapes into a System. Drawing.Region or know of a project elsewhere that achieves this please?

2) While I'm on the subject, how would you SCALE UP / DOWN a System.Drawing.Region please? How would you work out the Transform Matrix required please?

View 1 Replies

VS 2008 - Add Two Excel Sheets With Numbers And The Equal (similar) Numbers To Save Once

Mar 28, 2010

how can i add two excel sheets with numbers and the equal (similar)numbers to save once

View 1 Replies

Large Multidimensial Array - Write A Program To Do Markov Chain But States Are Quite Large

Jun 9, 2011

I want to write a program to do Markov chain, but my states are quite large. First of all I calculate all the transition probabilities and revenues for all states(1381860 total states), and store in a multidimensional array. Public RevArr(0 To 9, 0 To 750, 0 To 282) As Long

After that the iteration of markov chain should use these as inputs to calculate the steady-state probabilities. But when I try to run the main code I got this error.Exception of type 'System.OutOfMemoryException' was thrown.

The following is the declaration of second array I add just another dimension for storing all the iterations, but I get this error. Dim stateprob(IT + 1, 0 To 9, 0 To 750, 0 To 282) As single

View 1 Replies

VS 2008 - How To Encrypt Large Files

Oct 16, 2009

So I can encrypt small files using Des Encryption, but whenever I try encrypting large files, The program's memory usage skyrockets! Would anybody be able to get me some code that will let me encrypt large files (It doesn't have to be Des, but I need to be able to support any length password).

View 1 Replies

VS 2008 Large Data In Listview?

Mar 2, 2010

I have a listview control in my form which contains 44 columns. When user clicks on particular node in the 'tree view' it loads corresponding records to the listview. If the number of records is less then it works fine, but if there is more number of records then it takes more time to load(very slow).

View 4 Replies

VS 2008 Searching A Large String?

Jun 27, 2009

I haven't programmed for some time, so I'm a little rusty Basically I'm storing HTML within a variable, and I need to count the amount of times a specific element appears e.g. <h3 class=r> for now.

I thought of using a for each loop, and passing the string above into the parentheses of the loop (using a variable ofc) however for many reason's, I don't think this has a chance of working (won't bother explaining why, as I assume you can guess). Then thought of using the .Contains method of the string class, but I simply can't think of how to use it with what I'm trying to do.

View 2 Replies

VS 2008 Split A Large Txt File?

Mar 15, 2012

I have a large text file which I want to split into many different items.

On the next file I have a time between each item it's like this

01:20 a.m.
01:44 p.m.

In between these items is information like you would see in a log file.

How can I split these items like this?

View 13 Replies

VS 2008 Sql Processing Large Notes?

May 21, 2009

I got a question on sql splitting a record into peaces.I got a big record like this and all of this in one piece of record:

"
5/21/2009 1:03:49 PM
Order has been placed
5/25/2009 1:45:49 PM

[code]....

This is used for making notes, so you can keep adding notes on it until it's done.And I know this is not the 'best' way of keeping these records, this is the way how it was kept until now.So now my manager comes to me and asks to make a different structure of processing these notes.Because it is stored this way I can only retrieve full record from the database, but what I need is a way how to take for example only the 'top line' of it.Example:5/25/2009 8:45:49 PM Confirmation send

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved