GithubHelp home page GithubHelp logo

usefulfunc.jl's Introduction

UsefulFunc.jl

built with Codeium

Build Status

This package is a collection of functions to save me a bit of time when writing code or using Julia as a glorified calculator.

This is primarily just an excuse to do some testing of how package development works from someone who is new to Julia.

Functions

  • hex(x) - Convert an Int to a UInt. If passed a Float, it will floor it to an Int and then do the conversion.

  • dec(x) - Convert an UInt to an Int. If passed an Int or a Float, the floored value will be returned.

  • flt(x) - Convert an Int or UInt to a Float (formerly float(x), changed to avoid name clash in Base julia.

  • hexs(x) - Output hexadecimal as a string from the UInt, Int or Float parameter passed into the function.

  • decs(x) - Output decimal as a string from the UInt, Int or Float parameter passed into the function.

  • bins(x) - Output binary as a string from the UInt, Int or Float parameter passed into the function.

  • octs(x) - Output octal as a string from the UInt, Int or Float parameter passed into the function.

These functions are just wrappers for the convert(), floor() and string() functions.

usefulfunc.jl's People

Contributors

dna1000 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.