Money does not exist in the 24th century.
This is shown in the examples below:
Kirk tells Spock about 20th century Earth: “They’re still using money. We need to get some.” In the same movie, when Kirk is unable to pay in the restaurant, Gillian asks sarcastically, “Don’t tell me they don’t use money in the 23rd century.”, and Kirk tells her “Well, we don’t.” (“Star Trek IV”)
Picard tries to explain to Ralph Offenhouse from the 20th century that there would be no need for his law firm any longer: “A lot has changed in three hundred years. People are no longer obsessed with the accumulation of ‘things’. We have eliminated hunger, want, the need for possessions.” (TNG: “The Neutral Zone”)
When she asks how much the ship has cost, Picard tells Lily: “The economics of the future is somewhat different. You see, money doesn’t exist in the 24th century… The acquisition of wealth is no longer the driving force in our lives. We work to better ourselves and the rest of humanity.” (“Star Trek: First Contact”)
When Nog suggests that Jake should bid for a baseball card in an auction, Jake says: “I’m human, I don’t have any money.” Nog replies: “It’s not my fault that your species decided to abandon currency-based economics in favor of some philosophy of self-enhancement.” Jake: “Hey, watch it. There’s nothing wrong with our philosophy. We work to better ourselves and the rest of humanity.” (DS9: “In the Cards”)
Paris says about the significance of Fort Knox: “Well, uh, when the New World Economy took shape in the late 22nd century and money went the way of the dinosaur, Fort Knox was turned into a museum.” (VOY: “Dark Frontier”)
Or Does it?
Kirk says, “The Federation has invested a great deal of money in our training.” (TOS: “Errand of Mercy”).
Cyrano Jones negotiates the price of the Tribbles with the bartender on a Federation space station. The bartender is expected to pay with credits (TOS: “The Trouble with Tribbles”).
McCoy negotiates with an alien about a transfer to Genesis, and he says he would have enough money for that (“Star Trek III”).
Scotty says that he is going to buy a boat (“Star Trek VI”).
Beverly Crusher buys a roll of cloth, and has her account on the Enterprise billed (TNG: “Encounter at Farpoint”).
The Federation bids a sum of 1,500,000 Federation credits for the Barzan Wormhole (TNG: “The Price”, offer depicted in STTNG: The Continuing Mission).
Federation officers have to and are able to pay for drinks and for holosuite usage in Quark’s bar (DS9).
What is the value of Gold?
The Ferengi valued gold as a precious commodity then suddenly it was consisted of be little more than a medium for suspending latinum in.
When bidding for the Barzan wormhole, the Ferengi offered to match anyone’s best offer and to add a bag full of gold.. (TNG: “The Price”)
When the fictional character of Rumpelstiltskin arrived on Deep Space 9, he thought he was called upon to spin straw into gold. (DS9: “If Wishes Were Horses”)
Dialogue in TNG: “The Last Outpost” and “The Perfect Mate” suggests that at least as late as 2368, Ferengi considered gold valuable.
In “Little Green Men”, Quark says to a 20th-century Human that “gold is good”.
However, by the time of “Who Mourns for Morn?”, Quark describes gold as “worthless”.
One explanation for this apparent devaluation of gold is the fact that the Ferengi had only recently made First Contact with the Federation and. Replicator technology