Search found 49 matches

Mon Apr 05, 2010 3:26 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Printer Problems
Replies: 11
Views: 13690

LPRINT AND XP

To Burger2227 Was not aware any addition to first answers. So discovered your code this evening and tried it immediately. IT WORKS PERFECTLY ! This is a great improvement for me. Only issue is to adjust the printer properties each time want to use QBASIC and the must boring is probably to have to s...
Fri Jan 29, 2010 9:50 am
Forum: QBASIC and QB64 Questions & Answers
Topic: INT SURPRISES
Replies: 7
Views: 7718

CINT new surprise

Here is a new issue. The code is: L = (CINT((36.5106 - CINT(36.5106)) * 100) / 60) PRINT L L2 = (CINT((CINT(36.5106) - 36.5106) * 100) / 60) PRINT L2 The first one is negative ,The second positive. Not really a good surprise. It is added to CINT(36.5106) whic gives 37 In other words I really don't k...
Wed Jan 27, 2010 4:54 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: INT SURPRISES
Replies: 7
Views: 7718

INT SURPRISES

CINT Works well. Thanks again
Wed Jan 27, 2010 2:09 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: INT SURPRISES
Replies: 7
Views: 7718

INT OR CINT

Great! fortunately, I can use CINT but it will limit the program to QBASIC.
In fact INT was commun to QBASIC and GWBASIC this is why I took it.
Wed Jan 27, 2010 5:52 am
Forum: QBASIC and QB64 Questions & Answers
Topic: INT SURPRISES
Replies: 7
Views: 7718

INT SURPRISES

Can somebody explain how I can get the value I want: h=44.10 D1# = INT(h * 100): PRINT D1# D2 = 100 * h: PRINT D2 BASIC Answer for D1# is 4409 and not 4410 D2 answer is 4410 How can I have 4410 with INT fonction? (h can be 44.1035 for instance. I need that INT to cut at that point the 2 last digits)...
Thu Jan 21, 2010 1:22 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: SAVING COLORS
Replies: 6
Views: 7153

colors saved

thak you this will help me.
Thu Jan 21, 2010 1:20 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: DEGREES TO DECIMAL
Replies: 0
Views: 3968

DEGREES TO DECIMAL

Come back with this line:
(conversion DD.MMSS to decimal
LAs = INT(LAs) + ((INT(LAs * 100) / 100) - INT(LAs)) / .6 + (100 * LAs - INT(100 * LAs)) / 36
Result is wrong. I cannot see where
ex angle Las is 17.2100 Caclculator gives 17.350 in decimal, this program gives something else!
Wed Jan 20, 2010 1:20 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: REDUCING DECIMALS
Replies: 6
Views: 5695

DECIMALS

Finally, I think I will have to redefine variables as long as I want to save in a file and cannot write something like
PRINT#1,PRINT USING "POINT1 **.******,**.******";LOI1;LAT1
Wed Jan 20, 2010 10:00 am
Forum: QBASIC and QB64 Questions & Answers
Topic: SAVING COLORS
Replies: 6
Views: 7153

Save colors.....

This question was in my mind for a long time. Identical issue is to print directly from basic to printer. I know it works when changing several commands but I never tried....and the third one is to stop screens page after page, to have time to read first results.Only possIbility I see is to use view...
Wed Jan 20, 2010 9:52 am
Forum: QBASIC and QB64 Questions & Answers
Topic: REDUCING DECIMALS
Replies: 6
Views: 5695

DECIMALS

A very good help. Very happy.I thought to modify the variables but expected other possibilities.Many thanks
Tue Jan 19, 2010 11:53 am
Forum: QBASIC and QB64 Questions & Answers
Topic: SAVING COLORS
Replies: 6
Views: 7153

SAVING COLORS

This time, I use instruction COLOR to enhance QBASIC sreen but when saving results in a folder with instruction OPEN " ",#1,"WHATEVER"
I get all lines in BLACK. Could the solution be to save the results directly on WORD but is possible?
Many thanks in advance for help.
Tue Jan 19, 2010 11:37 am
Forum: QBASIC and QB64 Questions & Answers
Topic: REDUCING DECIMALS
Replies: 6
Views: 5695

REDUCING DECIMAL

Rectification: OnLY THE 3 Last ariables are decimal numbers
Tue Jan 19, 2010 11:35 am
Forum: QBASIC and QB64 Questions & Answers
Topic: REDUCING DECIMALS
Replies: 6
Views: 5695

REDUCING DECIMALS

Hello! I have the following code line PRINT "POINT1",LOI1,LAT1,DIST1 and the 4 variables are decimals with a lot of figures behind the comma. Would like to limit them all to 6 decimal and thought to use PRINT USING "**.******" as follows PRINT "POINT1",USING "**.*****";LOI1,LAT1,DIST1 as global inst...
Tue Jan 19, 2010 9:01 am
Forum: QBASIC and QB64 Questions & Answers
Topic: DEGRES CONVERSION
Replies: 2
Views: 3743

DEGRES TO DECIMAL

Thanks.
Sun Jan 17, 2010 11:11 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Repeating same calculations with incremental variable
Replies: 2
Views: 3453

formula with incremental values

THANKS A LOT!
Sat Jan 16, 2010 1:47 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Repeating same calculations with incremental variable
Replies: 2
Views: 3453

Repeating same calculations with incremental variable

Can you tell me how it is possible to use a loop to make several time the same calculation:exemple
Y=SIN(A)
with A= 2,3,4,5 etc
something like
FOR N=1 TO 10
PRINT Y=SIN(N)
NEXT N
Sat Jan 16, 2010 1:40 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: DEGRES CONVERSION
Replies: 2
Views: 3743

DEGRES CONVERSION

I have difficulties to transform DEGRES as used in programs (DD.MMSS) DD=DEGRES, MM=MINUTES etc; 24DEG 45MN 30S = 24.4530 as input in DECIMAL notation (24. 75833) I know it's elementary but for some reason I cannot find the actual number. I suppose that the code (3 lines) exists somewhere.I didn't f...
Wed Dec 09, 2009 6:06 am
Forum: QBASIC and QB64 Questions & Answers
Topic: OLD Texas Pgm
Replies: 3
Views: 4088

hav mistery

Thanks for answer. I thought the meaning was something like absolute value but apparently no. h for hemispherical? no something about graph y'are right.
Mon Dec 07, 2009 3:06 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: OLD Texas Pgm
Replies: 3
Views: 4088

OLD Texas Pgm

I find the following formula from an old Texas pgr for TI 59 havD =hav(Ls-Ld)cos(ls).cos(ld)+hav(ls-ld) For your info, ls,ld are the starting and destination latitudes, while Ls and Ld are the starting and destination longitudes D is the great circle distance I want to write that in basic but what t...
Mon Sep 15, 2008 9:20 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Printer Problems
Replies: 11
Views: 13690

PRINTING

Thanks both of you.I'll try it soon and see if it can apply to GW BASIC