WaffleDevs
WaffleDevs
CC#
Created by WaffleDevs on 8/19/2023 in #help
❔ Need Help Understanding Casting
I have an equation that returns a float of value 0.6561f. When i cast it to a double, it turns into 0.6560999751091003d. I don't understand why. Equation: Mathf.Pow(Math.Max((float)num - 300f, 0f) / 1200f, 2f Double: (double)Mathf.Pow(Math.Max((float)num - 300f, 0f) / 1200f, 2f int num = 1272 Mathf.Pow(float f, float p) returns (float)Math.Pow((double)f, (double)p);
96 replies
CC#
Created by WaffleDevs on 8/17/2023 in #help
❔ Whats the fastest way to write this data to a file? (C# Console App.)
I need to write an int[][] to disk. Each int[] has 2 values, and the full int[][] has 100mil entries. What would be the fastest method of writing this to disk?
59 replies
CC#
Created by WaffleDevs on 5/10/2023 in #help
❔ How would I have a compiled Class Library look for necessary reference in a folder other than ./
I am creating a game mod via Melon Loader, and I want to have the compiled .dll look for its references in a different folder than where the .dll is in. How do I do this?
9 replies