What do you want to save?
Add Code snippet
New code examples
-
C# 2022-02-13 22:05:03
c# type conversion
// --------------------- TYPE CONVERSION --------------------- // // Implicit conversion float varFloat = 12.7f; double varDouble = varFloat; // converts float => double // Explicit conversion (casting) double varDouble = 2.3; int varInt = (int) ... Add solution -
Javascript 2022-02-12 03:45:21
javascript convert number from thousands to k and millions to m
// converts number to string representation with K and M. // toFixed(d) returns a string that has exactly 'd' digits // after the decimal place, rounding if necessary. function numFormatter(num) { if(num > 999 && num < 1000000){ ... Add solution -
C# 2021-10-22 15:59:06
casting in c#
// --------------------- TYPE CONVERSION --------------------- // // Implicit conversion float varFloat = 12.7f; double varDouble = varFloat; // converts float => double // Explicit conversion (casting) double varDouble = 2.3; int varInt = (int) ... Add solution