Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 847 results for
bigint
- Page 1
BigInt help, please!
Programming
Software Development
16 Years Ago
by sabian4k
… wrong. and the program is due tomorrow. please help! [code] //************************************************************** // ************************************************************* // //
BigInt
.cpp // // This program adds large integers that are stored in…
BigInt multiplication & handling positive/negative
Programming
Software Development
14 Years Ago
by smoothe19
…
BigInt
); /***** addition operator *****/
BigInt
operator+(
BigInt
addend2); //Compare operator bool operator==(
BigInt
addend2); //Subtraction operator
BigInt
operator-(
BigInt
addend2); //Multiplication operator
BigInt
operator*(
BigInt
…of multiplication
BigInt
BigInt
::operator*(
BigInt
addend2) {
BigInt
multiply; …
BigInt Problem Using Tens Complement
Programming
Software Development
11 Years Ago
by Sasquadge
…std; class
BigInt
{ public:
BigInt
() {}
BigInt
(const char*);
BigInt
add(const
BigInt
&);
BigInt
operator+(const
BigInt
&); string … = str[i]; zero--; } }
BigInt
BigInt
::add(const
BigInt
& rightOperand) {
BigInt
objToReturn("0"); // TODO: ADD…
BigInt addition: Is this correct?
Programming
Software Development
15 Years Ago
by gretty
…the head of L) class
bigInt
{ public:
bigInt
add(
bigInt
J); private: node * firstp; }; */
bigInt
bigInt
::add(
bigInt
J) { // Write this…many variables?? Template given by lecturer: [CODE]
bigInt
bigInt
::add(
bigInt
J) { // Write this function correctly.…
Re: BigInt Problem Using Tens Complement
Programming
Software Development
11 Years Ago
by Sasquadge
…;4873");
BigInt
num3("-739");
BigInt
num4("-9871");
BigInt
num5("123456789012345678901234567890");
BigInt
num6("5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555556");
BigInt
num7("…
BigInt Multiply
Programming
Software Development
14 Years Ago
by noobuser
… help me with my code, im trying to write a
bigInt
multiply function but this function got some bugs(it prints…
Bigint division algorithm
Programming
Computer Science
12 Years Ago
by modesto916
Hi, My teacher asked us to implement the
bigint
data type in C, C++ or Java, we must also …
Re: What does bigint(20) in MySql
Programming
Web Development
14 Years Ago
by ApocDen
…,775,807 to 9,223,372,036,854,775,807.
bigint
(20) isn't a digit limit. It just means that…^64 is the hard limit for the
BIGINT
type, and has 20 digits itself, hence
bigint
(20) just means everything less than…
Re: BigInt help, please!
Programming
Software Development
16 Years Ago
by tux4life
I already wrote something like this for BigInteger addition (using C++ strings), maybe it might help you: [URL="http://www.daniweb.com/code/showsnippet.php?codeid=1154"]http://www.daniweb.com/code/showsnippet.php?codeid=1154[/URL] :) By the way, you haven't ask us a specific question, where are you having problems with in your code?
Re: BigInt help, please!
Programming
Software Development
16 Years Ago
by sabian4k
I guess my question is...how do i take in chars in the input function, then put them individually in an array, then convert them into intergers in another array.
Re: BigInt help, please!
Programming
Software Development
16 Years Ago
by tux4life
From char to integer (without checking whether character [ICODE]c[/ICODE] is a real digit, you'll have to add that yourself if you want): [CODE] short chr2int(char c) { return c-'0'; } [/CODE] From digit to character it's nearly the same, but you'll have to do [ICODE]+'0'[/ICODE] instead of [ICODE]-'0'[/ICODE] :) Avoid using [ICODE]…
C++ Bigint calculator (yet agiain...)
Programming
Software Development
15 Years Ago
by TheZea
… variable array here? }; //End class //Begin constructor
Bigint
::
Bigint
(long value) { getInt(value); }
Bigint
::~
Bigint
() { } void
Bigint
::getInt(unsigned long long int value){ //How do…
Re: C++ Bigint calculator (yet agiain...)
Programming
Software Development
15 Years Ago
by TheZea
…); friend
Bigint
operator+(const
Bigint
& x, const
Bigint
& y); friend
Bigint
operator-(const
Bigint
& x, const
Bigint
& y); friend
Bigint
operator/(const
Bigint
&…
Need help with Classic BigInt
Programming
Software Development
12 Years Ago
by gwolf1
… } carint++; *carint = '\0'; } /*
bigint
* bi_add(const
bigint
*, const
bigint
*); Adds two bigints and dynamically allocates a new…Doesn't modify the original
bigint
values. */
bigint
* bi_add(const
bigint
* BigI1, const
bigint
* BigI2) { int *temp1…
Re: C++ Bigint calculator (yet agiain...)
Programming
Software Development
15 Years Ago
by Lerner
… of how to do that. As it stands now:[code]
Bigint
::
Bigint
(string str){ for(int i = 0; i < str… num is a string, just assign str to num.
Bigint
::
Bigint
(const
Bigint
& x){ This is a copy constructor. Just assign … >> operator. Have user input the digits in
Bigint
using the routine syntax with lowest value digit to the…
Re: C++ Bigint calculator (yet agiain...)
Programming
Software Development
15 Years Ago
by TheZea
… this, it was very helpful. I thought that my
Bigint
::
Bigint
(string str) constructor IS taking str (the string passed …done here or in my << operator? With
Bigint
::
Bigint
(const
Bigint
& x) would i just use a command like:…; in your main function. That will call the default
Bigint
::
Bigint
(const
Bigint
&x) to make an instance of num, just…
Re: C++ Bigint calculator (yet agiain...)
Programming
Software Development
15 Years Ago
by WaltP
…, forget the class itself. How would you represent a [B]
Bigint
[/B]value? As a long? As an array? What makes…
Re: C++ Bigint calculator (yet agiain...)
Programming
Software Development
15 Years Ago
by TheZea
I get you, so write the code ignoring the
Bigint
class yes? Well the input should be placed into an …), so im confused with getting 'input passed in' to become '
Bigint
type' ... hmmmm Thank you for your reply :)
Re: Need help with Classic BigInt
Programming
Software Development
12 Years Ago
by gwolf1
I wanted someone to look over this code to see if it makes sense. I am suppoosed to make a
BigInt
and each function has a description over it. Currently, the memory allocated is not being released and I am having trouble starting my compare function. How would I do this?
To Test if the number is in the bigint range
Programming
Web Development
10 Years Ago
by jean_5
…).valueOf var valor =
bigInt
(val); var minimo =
bigInt
("-9223372036854775808"); var maximo =
bigInt
("9223372036854775807"); if (
bigInt
(val).greaterOrEquals(minimo) &… return true; else return false; } , ($input.hasClass("
bigint
") && !$input.isBigInt()) but when I compile …
how to apply like on bigint columns
Programming
Databases
10 Years Ago
by yaragalla_mural
… table structure is as below **Hospitals:-** Hospital_id
Bigint
name varchar(45) city_id
bigint
district_id
bigint
state_id
bigint
now i need to search hospitals based… of things but how to do this when there are
bigint
columns? I need this query. please help.
Re: To Test if the number is in the bigint range
Programming
Web Development
10 Years Ago
by jean_5
isBigInt: function () { var val =
bigInt
(); if (
bigInt
(val.toString()).greaterOrEquals("-9223372036854775808") &&
bigInt
(val.toString()).lesserOrEquals("9223372036854775807")) return true; else return false; } ,
What does bigint(20) in MySql
Programming
Web Development
14 Years Ago
by deni_bg
Hi everybody, I don't understand waht does
bigint
(20)in MySql means. First I thought
bigint
(20) means number from 0 to 99999999999999999999 digits, but I made a test with
bigint
(2). I thought
bigint
(2)=number from 0 to 99, but it's not. Did you know anybody? I'll be happy to know. Thank you :)
How to retrieve the data type from a column that is bigInt in the SQL Serve
Programming
Software Development
10 Years Ago
by jean_5
… if (!(row.IsNull("
bigInt
") || row["
bigInt
"].Equals(String.Empty))) { this.
bigInt
= Convert.ToInt64(row["
bigInt
"]); } But, it's…
How to retrieve the data type from a column that is bigInt in the SQL Serve
Programming
Software Development
10 Years Ago
by jean_5
… if (!(row.IsNull("
bigInt
") || row["
bigInt
"].Equals(String.Empty))) { this.
bigInt
= Convert.ToInt64(row["
bigInt
"]); } But, it's…
Re: How to retrieve the data type from a column that is bigInt in the SQL Serve
Programming
Software Development
10 Years Ago
by gusano79
SQL Server's `
bigint
` type maps to `Int64` in .NET, so that's right. It looks like you're trying to assign the result of the conversion where it won't fit. What type is `this.
bigInt
`?
How to get the value of a bigint in javascript?
Programming
Web Development
10 Years Ago
by jean_5
… code: isBigInt: function () { var val =
bigInt
(); if (
bigInt
(val.toString()).greaterOrEquals("-9223372036854775808") &&
bigInt
(val.toString()).lesserOrEquals("9223372036854775807"…
Re: How to convert string variable to BIGINT & also to keep leading zeros ??
Programming
Web Development
15 Years Ago
by digital-ether
… datatype only. because I should insert it into MySql database
BIGINT
data field. Is there any way to insert the numeric…/string value with leading zero into MYSQL
BIGINT
field ? If I insert a string of "0123456&…quot; this
BIGINT
field removes leading 0 and showing only 123456. how to…
Re: How to retrieve the data type from a column that is bigInt in the SQL Serve
Programming
Software Development
10 Years Ago
by muhammad ahmad
what is the data type of this.
bigInt
??
Re: How to retrieve the data type from a column that is bigInt in the SQL Serve
Programming
Software Development
10 Years Ago
by ddanbe
If `this.
bigInt
` is of type `int` or `Int32`, you cannot assign an `Int64` or a `long` to it.
1
2
3
15
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC