Giter Club home page Giter Club logo

percentagenet's People

Contributors

jeffward01 avatar romanov avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jeffward01

percentagenet's Issues

Code Cleanup / Unit Tests / Package standardization

Hello!

I saw your extensions here: 25b4a01

Looks good - do you mind if I clean your code up a little and add some unit tests in my PR? I can also add some more extension methods, and other features like (the option for) dependency injection for singleton instances - so the user can decide if they want to use the DI version, or static.

I want to also:

  • Add a solution (its standard)
  • Add unit tests
  • Change structure to something more standard, like this repository: https://github.com/fluxera/Fluxera.Repository
    • /src/<library>
    • /tests/<unit-tests>
    • / build and other metadata things
    • /assets/ I found an icon that you can use that I can add here
    • Other 'standard' things like this

I plan to have these all in my PR tomorrow

Icon:
icon

[Roadmap Question] What type of 'helpers' would you like to see?

GREAT LIBRARY!

This is so simple, yet so difficult at the same time. I can't believe no one has made a simple library like this earlier. Thank you!!

I see on the roadmap "More Helper Classes"

What do you have in mind?

I would love to contribute some code and pull-requests.

Thanks!

[Nuget API Key] Can you provide?

Hello!

I was setting up CI / CD with GitHub actions - and I need a nuget API key to do this. I see that you published this previously under your nuget account.

Can you please create a nuget API key then add it under 'secrets'? I do not think I have the option to do this.

Here are some screenshots and links to help you:
image

https://docs.github.com/en/actions/security-guides/encrypted-secrets

Once you add the key, please let me know what the name of the key is (not the value) so that I can add it to the CI / CD pipeline.

Thanks

Update to net7

Hello!

I can update this to net7 - I have a PR ready

What type of build pipeline do you use? Do you mind giving me access to it, or at least access to 'view' it so that I can make the net7 changes?

You'll still have permissions of course to 'run' the pipeline, I just want to make sure all things are built correctly with the various frameworks.

Thanks!

Using a type to represent a percentage

Why not create a type that represents a percentage instead?

// Creation
var p = Percentage.Parse("3.14");  // Parse: 3.14%;
var p = Percentage.Parse("3.14%"); // Parse: 3.14%;
var p = Percentage.Parse("31.4‰"); // Parse: 3.14%;
var p = 3.14.Percent(); // Extension on double: 3.14%;

// Manipulation
var p = 13.2.Percent();
p++; // 14.2%;
var total = 400;
total *= 50.Percent(); // Total = 200;
var value = 50.0;
value += 10.Percent(); // value 55;

var rounded = 17.56.Percent().Round(1); // 17.6%;

var perMille = 15.5.Percent().ToString("PM"); // 155‰
var perTenThousand = 0.34.Percent().ToString("PT"); // 34‱

Like this one Qowaiv.Percentage.

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.