Skip to content

clguillot/NullNumbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NullNumbers

Build Status Coverage License

NullNumbers is a lightweight Julia package providing a numeric type that can explicitly represent a “null” value while still participating in arithmetic. Null values act as a zero-like element: they are neutral for addition but absorb any numeric operand in multiplication.

Usage

julia> NullNumber() + 10.5
10.5

julia> NullNumber() * Rational(1, 3)
NullNumber()

julia> NullNumber() / 2
NullNumber()

julia> NullNumber()^3
NullNumber()

Features

  • A custom numeric type representing a null number
  • Basic arithmetic operations and functions
  • Useful to generate an instance of a function with hardcoded null parameters
  • Seamless integration with Julia's type system

Installation

]add https://github.com/clguillot/NullNumbers

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages