Hi,
I have a list of positive digits in a file. All I want to do is to add the negative sign (-) to each digit. Is there a code for this. eg list of digits
1 correspond -1
2 correspond-2
3 correspond -3 etc
princessotes
0
Newbie Poster
Recommended Answers
Jump to PostThe best way to do it is to read your file and write a new file with the negated digits. Could you be more specific about the content of your file (attach your file to a post ?).
All 4 Replies
Gribouillis
1,391
Programming Explorer
Team Colleague
myle
1
Newbie Poster
JasonHippy
739
Practically a Master Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.