python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Best way to convert a field in Rails from decimals to integer in cents
I have a Product model in Rails and the amount is stored as an integer in cents in the database.
Example of this field:
What is the best way to allow admins that are creating the product to enter a ...

Lee McAlilly
Votes: 0
Answers: 1
C Program to find the number of denominations for a given amount
now I'am nearly finished with my program but I need a little help because the math is not right.
Since I'am linking to menge with euro i thought the script will use 414. But it's somehow using an othe...
TheLuckyGuy
Votes: 0
Answers: 1
Picker choice changing the TextField in SwiftUI
I want the user to be able to choose the currency they want to put in my app. But with this code:
import SwiftUI
struct ContentView: View {
@State private var amount = 0.0
@State private...
Swantewit
Votes: 0
Answers: 1
Regex find all money related value in a long string
I am trying to extract money-related value from a long string.
I can match the following format using (?:cad|[$]|usd)\s*\d+?
$1000
cad 1000
usd 1000
I have trouble with the one with 1000 separators...
Grace Jin
Votes: 0
Answers: 2