Skip to content

A simple attribute to make large numbers in property fields appear in positional notation and be more readable.

License

Notifications You must be signed in to change notification settings

TheFrankyDoll/UnityEditor-BigNumberAttribute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BigNumberAttribute

A simple-to-use attribute to make large numbers in property fields appear more readable without use of scientific notations.

Suported types: Int, Long, Float, Double

bigNumberPreview

Instalation

Use Releases tab to get latest .unitypackage file, or simply copy the code yourself. Its like two files anyway.

Usage

bigNumberUsage

This is an attribute - put [BigNumber] before your property to apply it.

Trivia

This way of displaying numbers called 'Positional Notation' and it will make limitations of floating point precision rather obvious when using large numbers.

Also see:

http://wikipedia.org/wiki/Single_precision

http://wikipedia.org/wiki/Double_precision

https://stackoverflow.com/q/872544/13975593

About

A simple attribute to make large numbers in property fields appear in positional notation and be more readable.

Resources

License

Stars

Watchers

Forks

Languages