Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by jester12272012 · Jan 20 at 10:28 AM · mathvoidnumberimplementationalternative

So I was working on something within my head and figure I try to create my own number system

So I have been working on a way to try to sort of stack and chain numbers, I remember that technically speaking math only means something to people and not really machines, so much as in that machine doesn't really comprehend the true meaning behind math, so I was wondering of a way to make a system that has a different counting system, say for example 11 would be the new 10 as 11 is the base, or creating a system that can allow me to make 9 10 instead while also being able to create incredibly large numbers, think of numbers bigger than 1e308, by theory this script if I can find a way to implement it could allow me to go for numbers far bigger than 1e308 (meaning wise, not computer wise) but here begins the problems, how do I interact with these numbers independently, how do I implement these numbers. Finally would this thing even work and if it doesn't how do I make it work (hadn't gotten good chances to test it but I already know I am gonna bang my head against the wall as soon as I even think of implementing this. I wanted to create a better alternative for idle games than big doubles.) (The code begins here)

 double base = (random number.)
 
 public struct Numbering system. (double mantissa, double exponent.)
 {
  If ( mantissa >= base (lets say 10, maybe a 100))
 {
 mantissa = 1
 exponent +=1
 all increments divided by base
 
 }
 
 if ( mantissa < 1/base (if it was 10 it would be 1/10 if it was a 100 it would be 1/100))
 
 mantissa x by base
 exponent -=1
 all increments multiplied by base.
 }
 // idea is to be able to create numbers that can work like this so if code say (4,4000) it would result in 4e4000 

// yes I know random number isn't a number, lets just say for the sake of this it is 10

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by elenzil · Jan 20 at 06:58 PM

Right on! Great stuff to grapple with.

You may want to bear in mind that fundamentally computers use binary. So if you want a system for representing numbers, be sure to understand how it works with binary bits.

That said, you might be interested to read about the floating-point representation of numbers.

You might also google around for "Arbitrary Precision" computation.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jester12272012 · Jan 20 at 11:00 PM 0
Share

This is enlightening, could be helpful in helping me figure out what the heck I am doing.

avatar image
0

Answer by jester12272012 · Jan 20 at 10:39 AM

ah right of course, I know that writing in "multiplied"/ "divided" by base is not going to work. I just realized this thing has a whole host of issues, both mathematically and some code wise, I used mantissa to =1 as to prevent "infinity" to be caused (I know kinda lazy, probably may not even be necessary) also I know that double base cant just be typed out as is, it has to be typed out base = (number) but I figure I reference that it is a double, also I know I can't just say all increments either, this was sort of my way of catch all, by saying that all things that use this specifically ways that increase the number change a bit to be more accurate (can't have +1 be the same +1 if the exponent is bigger, so it has to be decreased to properly scale. the inverse is true if the exponent is reduced) If you have other questions or inquiries please shoot them so I can help answer em, so you can help me figure this thing out.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jester12272012 · Jan 20 at 10:40 AM 0
Share

ah shoot maybe a forum was a better place for this......

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

143 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

GUI Coordinate System 0 Answers

Get number input from user 4 Answers

Is there a way to have very large mass 0 Answers

Maths issue + Null reference error? -1 Answers

How to create a standard deviation number generator? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges