Sometimes, Activerecord data types confuse me. Err, often. One of my eternal questions is, for a given case, Should I use :decimal or :float? I’ve often come across this...
  • May 16, 2022
  • 0 Comments
I have a Decimal('3.9') as part of an object, and wish to encode this to a JSON string which should look like {'x': 3.9}. I don’t care about precision...
  • May 16, 2022
  • 0 Comments
I want to use a Track-Bar to change a Form‘s opacity. This is my code: decimal trans = trackBar1.Value / 5000; this.Opacity = trans; When I build the application,...
  • April 22, 2022
  • 0 Comments